We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c73a438 commit 02dee89Copy full SHA for 02dee89
packages/compass-crud/src/components/json-editor.tsx
@@ -84,6 +84,7 @@ const JSONEditor: React.FunctionComponent<JSONEditorProps> = ({
84
const setModifiedEJSONStringRef = useRef<(value: string | null) => void>(
85
doc.setModifiedEJSONString.bind(doc)
86
);
87
+ setModifiedEJSONStringRef.current = doc.setModifiedEJSONString.bind(doc);
88
89
useEffect(() => {
90
const setModifiedEJSONString = setModifiedEJSONStringRef.current;
0 commit comments