fix: [genericElement:codemirror] Catch if no data for codemirror are passed
parent
d9bef3dc0c
commit
493530f52d
|
@ -40,7 +40,7 @@
|
|||
},
|
||||
hintData: {}
|
||||
}
|
||||
const passedOptions = <?= json_encode($data['codemirror'] ?? $data['codemirror']) ?>;
|
||||
const passedOptions = <?= !empty($data['codemirror']) ? json_encode($data['codemirror']) : '{}' ?>;
|
||||
const cmOptions = Object.assign({}, cmDefaultOptions, passedOptions)
|
||||
let cm
|
||||
init()
|
||||
|
|
Loading…
Reference in New Issue