fix frontend import error

This commit is contained in:
Saumya 2025-07-16 10:20:18 +05:30
parent a8fdc7805f
commit 610aa7cce0
1 changed files with 2 additions and 5 deletions

View File

@ -46,7 +46,7 @@ export const AgentPipedreamToolsManager: React.FC<AgentPipedreamToolsManagerProp
onOpenChange,
onToolsUpdate
}) => {
const { data, isLoading, error, handleUpdateTools, isUpdating, refetch } = usePipedreamToolsData(agentId, profileId);
const { data, isLoading, error, isUpdating, refetch } = usePipedreamToolsData(agentId, profileId);
const [localTools, setLocalTools] = useState<Record<string, boolean>>({});
const [hasChanges, setHasChanges] = useState(false);
@ -103,11 +103,8 @@ export const AgentPipedreamToolsManager: React.FC<AgentPipedreamToolsManagerProp
const enabledTools = Object.entries(localTools)
.filter(([_, enabled]) => enabled)
.map(([name]) => name);
handleUpdateTools(enabledTools);
setHasChanges(false);
// Notify parent component of the update
if (onToolsUpdate) {
onToolsUpdate(enabledTools);
}