Items Repeating in Listview

Hello Everyone,
I am creating an interface in which the user enters their task and the task is stored in firebase.
The items are repeating (when ever I refresh the companion screen) in the List which I have created using Dynamic Components by @yusufcihan
The items are retrieving and are appending from Firebase Realtime Database, in Firebase all the items are arranged as I needed but in the app they are repeating almost up to 5 times.

My blocks

I am also getting an error
Runtime Error

Please help me to solve this out !

generally before selecting something from a list make sure the list is not empty
Taifun

1 Like

@Taifun Thanks for your response,
The list is not empty and is filled with items, whenever I add an item to the list the item repeats but in the firebase there is no repetition.

according to the error message, the list is empty
Unbenannt
Taifun

1 Like

@Taifun but in my app there is items but also its giving an error,
To clarify, I created new project but the same problem occurred and this is the snapshot of companion of that project

Attached the AIA and APK for your review
Items_Repeating_in_List.aia (71.5 KB)
Items_Repeating_in_List.apk (6.1 MB)

image

You need to accept that at some point in your blocks, you are trying to get an item from an empty list. Then you must debug your blocks where there is a loop with a list.

The image is too small on the smartphone.

1 Like