diff --git a/packages/nc-gui/components/monaco/Editor.vue b/packages/nc-gui/components/monaco/Editor.vue index 706f700e9a..66420b4bfb 100644 --- a/packages/nc-gui/components/monaco/Editor.vue +++ b/packages/nc-gui/components/monaco/Editor.vue @@ -16,6 +16,7 @@ interface Props { } const props = withDefaults(defineProps(), { + modelValue: '', lang: 'json', validate: true, disableDeepCompare: false, @@ -24,7 +25,9 @@ const props = withDefaults(defineProps(), { const emits = defineEmits(['update:modelValue']) -const { hideMinimap, lang, validate, disableDeepCompare, modelValue, readOnly, autoFocus } = props +const { modelValue } = toRefs(props) + +const { hideMinimap, lang, validate, disableDeepCompare, readOnly, autoFocus } = props const vModel = computed({ get: () => {