refactor(NewAgent): remove debug logs

This commit is contained in:
Siddhant Rai
2025-07-12 12:36:18 +05:30
parent a472ee7602
commit 793f3fb683

View File

@@ -320,11 +320,6 @@ export default function NewAgent({ mode }: { mode: 'new' | 'edit' | 'draft' }) {
!isEqual(agent, initialAgentRef.current) || imageFile !== null;
setHasChanges(isChanged);
}, [agent, dispatch, effectiveMode, imageFile]);
useEffect(() => {
console.log(initialAgentRef.current);
console.log(agent);
}, [agent, initialAgentRef.current]);
return (
<div className="p-4 md:p-12">
<div className="flex items-center gap-3 px-4">
@@ -705,7 +700,7 @@ function AddPromptModal({
setNewPromptContent('');
onSelect?.(newPromptName, newPrompt.id, newPromptContent);
} catch (error) {
console.error(error);
console.error('Error adding prompt:', error);
}
};
return (