serge-web/serge-web

View on GitHub
client/src/Components/local/molecules/json-editor/helpers/setupEditor.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function setupEditor has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const setupEditor = (editor: Editor | null, schema: any, ref: RefObject<HTMLDivElement>,
  jsonEditorConfig: Record<string, any>, 
  showErrorsMode?: string): Editor | null => {
  if (editor !== null) {
    editor.destroy()

    There are no issues that match your filters.

    Category
    Status