Loop when deleting document

Actions & Logic

Hello, I created a condition to delete a document only if other document collections are empty. The condition is working correctly; it deletes the current document if all others are empty, and if they are not empty, it issues an alert. However, when I click to delete the document on the frontend, the document is deleted in Firebase, but the screen goes into an infinite loop. Could you help me identify where the error might be? I have attached the created rule and the screen showing the loop that occurs when executing the action in the app's interface.

What have you tried so far?
Did you check FlutterFlow's Documentation for this topic?
Yes
1 reply