fix: prevent create another from throwing an error

This commit is contained in:
Henry
2024-11-19 17:49:37 +00:00
parent 87e4ff143c
commit 6bd5a68a76

View File

@@ -97,10 +97,12 @@ export function NewCardForm({ listPublicId }: NewCardFormProps) {
if (!isCreateAnotherEnabled) closeModal();
reset({
title: "",
description: "",
listPublicId: watch("listPublicId"),
labelPublicIds: [],
memberPublicIds: [],
isCreateAnotherEnabled,
position,
});
createCard.mutate({