firebase / firebase/firebase-tools-ui

Window for adding or editing firestore data closes unexpectedly

Open
#984 0 comments 0 reactions 1 assignee Claimed by @christhompsongoogle View on GitHub
Dominant language
TypeScript
Stars
291
Forks
74
PR merge metrics
No merged PRs in 30d

Description

**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](https://github.com/firebase/firebase-tools-ui/assets/101019131/e99847d7-624b-4565-8a12-18a9d1f5338f)

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.