Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Oct 25, 2024
1 parent c7bc93e commit 388e746
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export const CreateTargetVariableDialog: React.FC<
createTargetVariable
.mutateAsync({ targetId, ...data })
.then(() => utils.target.byId.invalidate(targetId))
.then(() => form.reset()),
.then(() => form.reset())
.then(() => setOpen(false)),
);

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const DeleteTargetVariableDialog: React.FC<
<AlertDialogAction
className={buttonVariants({ variant: "destructive" })}
onClick={onDelete}
disabled={deleteTargetVariable.isPending}
>
Delete
</AlertDialogAction>
Expand Down

0 comments on commit 388e746

Please sign in to comment.