mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-11-07 05:36:41 +08:00
Blank key value pairs can currently be added in local and session storage which leads to the ui displaying two empty entries instead of one. Blank entries can currently be added because comparison of newText (empty string) and the previous value (null) evaluates to true in DataGridImpl._editingCommitted. This PR changes this by setting the previous value (valueBeforeEditing) to empty string in case it is null. Fixed: 1077736 Change-Id: I38961e7e744e1abf41b2e36fdaaee76ed0abcbe2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2190480 Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>