Skip to content

Commit

Permalink
Fix null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Aug 12, 2024
1 parent edf265b commit 610c901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context/useInitializedCKEditorsMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const useInitializedCKEditorsMap = <TContext extends Context>(
}

const metadata = tryExtractCKEditorReactContextMetadata( editor.config );
const nameOrId = metadata ? metadata.editorName : editor.id;
const nameOrId = metadata?.editorName ?? editor.id;

map[ nameOrId ] = {
instance: editor,
Expand Down

0 comments on commit 610c901

Please sign in to comment.