refactor: detected editor component for super note type
This commit is contained in:
@@ -598,12 +598,12 @@ export class SNComponentManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
editorForNote(note: SNNote): SNComponent | undefined {
|
editorForNote(note: SNNote): SNComponent | undefined {
|
||||||
if (note.editorIdentifier) {
|
if (note.noteType === NoteType.Plain || note.noteType === NoteType.Super) {
|
||||||
return this.componentWithIdentifier(note.editorIdentifier)
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
if (note.noteType === NoteType.Plain) {
|
if (note.editorIdentifier) {
|
||||||
return undefined
|
return this.componentWithIdentifier(note.editorIdentifier)
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.legacyGetEditorForNote(note)
|
return this.legacyGetEditorForNote(note)
|
||||||
|
|||||||
Reference in New Issue
Block a user