From aa7820b6994803d7dba91f3c06f0b951df282a10 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 16 May 2019 15:36:47 -0400 Subject: [PATCH] Don't treat new raw_tag_editor rows the same as deleted rows (closes #6369) --- modules/ui/raw_tag_editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/raw_tag_editor.js b/modules/ui/raw_tag_editor.js index 01217569c..60b0b088d 100644 --- a/modules/ui/raw_tag_editor.js +++ b/modules/ui/raw_tag_editor.js @@ -457,7 +457,7 @@ export function uiRawTagEditor(context) { _pendingChange = _pendingChange || {}; // exit if we are currently about to delete this row anyway - #6366 - if (_pendingChange[kOld] === undefined) return; + if (_pendingChange.hasOwnProperty(d.key) && _pendingChange[d.key] === undefined) return; if (kOld) { _pendingChange[kOld] = undefined; @@ -480,7 +480,7 @@ export function uiRawTagEditor(context) { _pendingChange = _pendingChange || {}; // exit if we are currently about to delete this row anyway - #6366 - if (_pendingChange[d.key] === undefined) return; + if (_pendingChange.hasOwnProperty(d.key) && _pendingChange[d.key] === undefined) return; _pendingChange[d.key] = this.value; scheduleChange();