Browse Source

fix: expanding row with json column issue

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1825/head
Wing-Kam Wong 2 years ago
parent
commit
df28acdc3e
  1. 2
      packages/nc-gui/components/monaco/MonacoJsonObjectEditor.js

2
packages/nc-gui/components/monaco/MonacoJsonObjectEditor.js

@ -37,7 +37,7 @@ export default {
},
watch: {
value(newVal) {
if (!this.deepcompare(newVal, JSON.parse(this.editor.getValue())))
if (this.editor && !this.deepcompare(newVal, JSON.parse(this.editor.getValue())))
this.editor.setValue(JSON.stringify(newVal, 0, 2));
}

Loading…
Cancel
Save