client/src/Components/local/molecules/json-editor/helpers/setupEditor.ts
Function setupEditor
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const setupEditor = (editor: Editor | null, schema: any, ref: RefObject<HTMLDivElement>,
jsonEditorConfig: Record<string, any>,
showErrorsMode?: string): Editor | null => {
if (editor !== null) {
editor.destroy()