mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-27 07:53:40 +00:00
Don't try to change a key/value that's already about to be deleted
(closes #6366)
This commit is contained in:
@@ -455,6 +455,10 @@ export function uiRawTagEditor(context) {
|
||||
}
|
||||
|
||||
_pendingChange = _pendingChange || {};
|
||||
|
||||
// exit if we are currently about to delete this row anyway - #6366
|
||||
if (_pendingChange[kOld] === undefined) return;
|
||||
|
||||
if (kOld) {
|
||||
_pendingChange[kOld] = undefined;
|
||||
}
|
||||
@@ -474,6 +478,10 @@ export function uiRawTagEditor(context) {
|
||||
if (isReadOnly(d)) return;
|
||||
|
||||
_pendingChange = _pendingChange || {};
|
||||
|
||||
// exit if we are currently about to delete this row anyway - #6366
|
||||
if (_pendingChange[d.key] === undefined) return;
|
||||
|
||||
_pendingChange[d.key] = this.value;
|
||||
scheduleChange();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user