fix code editor issue

This commit is contained in:
Niels Lyngsø
2023-11-15 21:44:03 +01:00
parent 69d2a53367
commit dea339db7e

View File

@@ -97,9 +97,9 @@ export class UmbCodeEditorController {
set value(newValue: string) {
if (!this.#editor) throw new Error('Editor object not found');
const oldValue = this.value;
const oldValue = this.value ?? '';
if (newValue !== oldValue) {
this.#editor.setValue(newValue);
this.#editor.setValue(newValue ?? '');
}
}
/**