Sending the value in the dropdown as a document ID to check in Firebase, but it only checks the document ID at the top and ignores the rest below.

I am working on a project and experimenting with using a dropdown to send data to check in Firebase. I'm sending the value in the dropdown as a document ID to Firebase to check if there is any data. However, it only checks the data for the topmost document ID. It doesn't check the data for the documents below. Where should I make additional changes to fix this issue? Please help me with some guidance. Thank you.

5 replies