focusreactive / focusreactive/headless-cms-yaml-input
Emptying the yaml editor throws an exception
- Dominant language
- TypeScript
- Stars
- 8
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
While working with a YamlEditor component within a NextJS project running in development mode, any time I delete all text from the editor window, an error is thrown:
```Unhandled Runtime Error
Error: merge function should return object with "text" or "json" fields
Call Stack
getMergedValue
node_modules/@focus-reactive/react-yaml/dist/YamlEditor.js (94:0)
eval
node_modules/@focus-reactive/react-yaml/dist/YamlEditor.js (131:0)
updateMemo
node_modules/react-dom/cjs/react-dom.development.js (17246:0)
Object.useMemo
node_modules/react-dom/cjs/react-dom.development.js (17886:0)
Object.useMemo
node_modules/react/cjs/react.development.js (1650:0)
YamlEditor
node_modules/@focus-reactive/react-yaml/dist/YamlEditor.js (130:0)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.