Browse Source

fix: if json string is invalid avoid trying to save on enter key press

pull/9447/head
Pranav C 3 months ago
parent
commit
852fd0e295
  1. 3
      packages/nc-gui/components/cell/Json.vue

3
packages/nc-gui/components/cell/Json.vue

@ -86,6 +86,9 @@ const onSave = () => {
editEnabled.value = false
// avoid saving if error exists or value is same as previous
if (error.value || localValue.value === vModel.value) return false
vModel.value = formatValue(localValue.value) === null ? null : formatJson(localValue.value as string)
}

Loading…
Cancel
Save