Skip to content

Commit

Permalink
Don't add pairs with empty keys in object settings (microsoft#101809)
Browse files Browse the repository at this point in the history
  • Loading branch information
9at8 authored and gjsjohnmurray committed Jul 8, 2020
1 parent 84b364b commit eab4b9c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1088,7 +1088,7 @@ export class SettingObjectRenderer extends AbstractSettingRenderer implements IT
}
}
// New item was added
else if (template.objectWidget.isItemNew(e.originalItem)) {
else if (template.objectWidget.isItemNew(e.originalItem) && e.item.key.data !== '') {
newValue[e.item.key.data] = e.item.value.data;
newItems.push(e.item);
}
Expand Down

0 comments on commit eab4b9c

Please sign in to comment.