Skip to content

Commit bc197fb

Browse files
authored
Merge branch 'main' into bulk-actions-2.0
2 parents 46fb6d5 + 87c21ab commit bc197fb

File tree

7 files changed

+911
-358
lines changed

7 files changed

+911
-358
lines changed

apps/webapp/app/components/code/JSONEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ export function JSONEditor(opts: JSONEditorProps) {
125125
}
126126
}, [defaultValue, view]);
127127

128-
const clear = useCallback(() => {
128+
const clear = () => {
129129
if (view === undefined) return;
130130
view.dispatch({
131131
changes: { from: 0, to: view.state.doc.length, insert: undefined },
132132
});
133133
onChange?.("");
134-
}, [view]);
134+
};
135135

136136
const copy = useCallback(() => {
137137
if (view === undefined) return;

0 commit comments

Comments
 (0)