diff --git a/src/library-authoring/add-content/AddContentContainer.tsx b/src/library-authoring/add-content/AddContentContainer.tsx index cfd990099..d47f33e7e 100644 --- a/src/library-authoring/add-content/AddContentContainer.tsx +++ b/src/library-authoring/add-content/AddContentContainer.tsx @@ -194,7 +194,7 @@ const AddContentContainer = () => { const suportedEditorTypes = Object.values(blockTypes); if (suportedEditorTypes.includes(blockType)) { // linkComponent on editor close. - openComponentEditor('', (data) => linkComponent(data.id), blockType); + openComponentEditor('', (data) => data && linkComponent(data.id), blockType); } else { createBlockMutation.mutateAsync({ libraryId,