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(); if (!isCreateAnotherEnabled) closeModal();
reset({ reset({
title: "", title: "",
description: "",
listPublicId: watch("listPublicId"), listPublicId: watch("listPublicId"),
labelPublicIds: [], labelPublicIds: [],
memberPublicIds: [], memberPublicIds: [],
isCreateAnotherEnabled, isCreateAnotherEnabled,
position,
}); });
createCard.mutate({ createCard.mutate({