firebase / firebase-tools-ui

A local-first UI for Firebase Emulator Suite.
https://firebase.googleblog.com/2020/05/local-firebase-emulator-ui.html
Apache License 2.0
262 stars 60 forks source link

Window for adding or editing firestore data closes unexpectedly #984

Open thefunkman opened 11 months ago

thefunkman commented 11 months ago

Describe the bug

When using the firestore emulator UI to edit data in firestore, the window that appears when you click the + or pencil icon next to a field closes unexpectedly after a few seconds (1-5seconds), as if the cancel button was pressed.

This seems to happen only when editing a nested field or adding a nested field to an existing field.

To Reproduce Steps to reproduce the behavior:

  1. Start the emulator with existing data (../latest is an export from firebase which is roughly 12MB large) firebase emulators:start --only firestore,auth,functions --import ../latest
  2. Open the Emulator UI and go to Firestore > data
  3. Open a document which contains nested fields
  4. Click on the pencil icon in a nested field (i.e. a field in a map field)
  5. Wait a couple seconds and the edit window closes

Expected behavior The edit window does not close unless I click 'cancel', 'save' or click outside of it.

Screenshots Example of the window which suddenly closes image

Desktop: