diff --git a/src/Utils/ImportExport.ts b/src/Utils/ImportExport.ts index 428b2c0a..63af6993 100644 --- a/src/Utils/ImportExport.ts +++ b/src/Utils/ImportExport.ts @@ -355,7 +355,7 @@ export async function importFromCallout(plugin: NoteToolbarPlugin, callout: stri visibility: DEFAULT_ITEM_VISIBILITY_SETTINGS, }; - toolbar.items.push(toolbarItem); + toolbar?.items.push(toolbarItem); }