diff --git a/frontend/app/chat/[chatId]/components/ActionsBar/components/KnowledgeToFeed/components/FromConnections/FromConnections.tsx b/frontend/app/chat/[chatId]/components/ActionsBar/components/KnowledgeToFeed/components/FromConnections/FromConnections.tsx index cb07bd839..cdbf8ffc5 100644 --- a/frontend/app/chat/[chatId]/components/ActionsBar/components/KnowledgeToFeed/components/FromConnections/FromConnections.tsx +++ b/frontend/app/chat/[chatId]/components/ActionsBar/components/KnowledgeToFeed/components/FromConnections/FromConnections.tsx @@ -118,7 +118,9 @@ export const FromConnections = (): JSX.Element => { selectable={!!isPremium || currentProvider === "Notion"} id={folder.id} icon={folder.icon} - isAlsoFile={currentProvider === "Notion"} + isAlsoFile={ + currentProvider === "Notion" ? true : undefined + } /> ))} diff --git a/frontend/app/chat/[chatId]/components/ActionsBar/components/KnowledgeToFeed/components/FromConnections/SyncElementLine/SyncElementLine.tsx b/frontend/app/chat/[chatId]/components/ActionsBar/components/KnowledgeToFeed/components/FromConnections/SyncElementLine/SyncElementLine.tsx index d7b743ea5..40b698bc8 100644 --- a/frontend/app/chat/[chatId]/components/ActionsBar/components/KnowledgeToFeed/components/FromConnections/SyncElementLine/SyncElementLine.tsx +++ b/frontend/app/chat/[chatId]/components/ActionsBar/components/KnowledgeToFeed/components/FromConnections/SyncElementLine/SyncElementLine.tsx @@ -41,7 +41,7 @@ export const SyncElementLine = ({ const [checked, setChecked] = useState(initialChecked); - const showCheckbox: boolean = isAlsoFile ?? !isFolder; + const showCheckbox: boolean = isAlsoFile ?? selectable; const handleSetChecked = () => { setOpenedConnections((prevState) => { @@ -82,11 +82,7 @@ export const SyncElementLine = ({ } }} > -
+
{showCheckbox && (
setIsCheckboxHovered(true)}