We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dd8140 commit 4a11609Copy full SHA for 4a11609
src/web/features/chats/components/ChatInput/SmartHubSelector.tsx
@@ -146,10 +146,6 @@ const SmartHubSelectorComponent: React.FC<SmartHubSelectorProps> = () => {
146
return available;
147
}, [isKnowledgeGraphAvailable]);
148
149
- useEffect(() => {
150
- checkAndEnableKnowledgeGraph();
151
- }, [checkAndEnableKnowledgeGraph]);
152
-
153
return (
154
<>
155
<CustomDropdown
@@ -161,6 +157,7 @@ const SmartHubSelectorComponent: React.FC<SmartHubSelectorProps> = () => {
161
157
size="sm"
162
158
className={`h-8 w-8 p-0 relative ${selectedCount > 0 ? 'text-primary' : ''}`}
163
159
title="Smart Hubs"
160
+ onClick={() => checkAndEnableKnowledgeGraph()}
164
>
165
<IoMdFolder className="h-4 w-4" />
166
{selectedCount > 0 && (
0 commit comments