chore(DeleteButton): logging

This commit is contained in:
Danny Avila 2024-09-04 14:14:20 -04:00
parent 925aaadb9b
commit 91d6cdab82
No known key found for this signature in database
GPG key ID: 2DD9CC89B9B50364

View file

@ -4,8 +4,8 @@ import { OGDialog, OGDialogTrigger, Label } from '~/components/ui';
import { useChatContext, useToastContext } from '~/Providers';
import OGDialogTemplate from '~/components/ui/OGDialogTemplate';
import { useLocalize, useSetIndexOptions } from '~/hooks';
import { cn, removeFocusOutlines, logger } from '~/utils';
import { useDeleteAgentMutation } from '~/data-provider';
import { cn, removeFocusOutlines } from '~/utils/';
import { TrashIcon } from '~/components/svg';
export default function DeleteButton({
@ -34,8 +34,8 @@ export default function DeleteButton({
status: 'success',
});
if (createMutation.data?.id) {
console.log('[deleteAgent] resetting createMutation');
if (createMutation.data?.id ?? '') {
logger.log('agents', 'resetting createMutation');
createMutation.reset();
}