firebase-tools-ui icon indicating copy to clipboard operation
firebase-tools-ui copied to clipboard

Window for adding or editing firestore data closes unexpectedly

Open thefunkman opened this issue 1 year ago • 0 comments

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:

  • OS: Linux DESKTOP-L9UI1M3 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
  • Browser : Chome Version 114.0.5735.248 (Official Build) (64-bit) and also tested in Edge Version 115.0.1901.188 (Official build) (64-bit)
  • firebase --version: 12.4.7

thefunkman avatar Aug 05 '23 17:08 thefunkman