diff --git a/apps/web/src/components/dialogs/move-note-dialog.tsx b/apps/web/src/components/dialogs/move-note-dialog.tsx index 93e0145b3..19e7f33e3 100644 --- a/apps/web/src/components/dialogs/move-note-dialog.tsx +++ b/apps/web/src/components/dialogs/move-note-dialog.tsx @@ -241,7 +241,9 @@ function NotebookItem(props: { const [isCreatingNew, setIsCreatingNew] = useState(false); const index = findSelectionIndex(notebook, selected); - const isSelected = index > -1; + const selectedNotebook = selected[index]; + const hasSelectedTopics = + selected.filter((nb) => nb.id === notebook.id && !!nb.topic).length > 0; return ( @@ -285,7 +287,14 @@ function NotebookItem(props: { } }} > - + + {hasSelectedTopics && ( + + )}