diff --git a/packages/compass-data-modeling/src/components/drawer/diagram-editor-side-panel.tsx b/packages/compass-data-modeling/src/components/drawer/diagram-editor-side-panel.tsx index a95381b5de3..34dc54ccd69 100644 --- a/packages/compass-data-modeling/src/components/drawer/diagram-editor-side-panel.tsx +++ b/packages/compass-data-modeling/src/components/drawer/diagram-editor-side-panel.tsx @@ -39,7 +39,7 @@ const drawerTitleTextStyles = css({ const drawerTitleActionGroupStyles = css({}); type DiagramEditorSidePanelProps = { - selectedItems: (SelectedItems & { label: string }) | null; + selectedItems: (SelectedItems & { title: string }) | null; onDeleteCollection: (ns: string) => void; onDeleteRelationship: (rId: string) => void; onDeleteField: (ns: string, fieldPath: FieldPath) => void; @@ -53,10 +53,11 @@ function DiagramEditorSidePanel({ onDeleteRelationship, onDeleteField, }: DiagramEditorSidePanelProps) { - const { content, label, actions, handleAction } = useMemo(() => { + const { content, label, actions, title, handleAction } = useMemo(() => { if (selectedItems?.type === 'collection') { return { - label: selectedItems.label, + title: selectedItems.title, + label: 'Collection Configuration', content: ( - - {label} + + {title} } > -
(mixed)
+ (mixed) ); }