Compare commits

...

1 Commits

Author SHA1 Message Date
Henry
b60c48838d fix: allow reordering without supplying an index when updating cards 2026-05-11 12:54:35 +01:00

View File

@@ -945,7 +945,7 @@ export const cardRouter = createTRPCRouter({
);
}
if (input.index !== undefined) {
if (input.index !== undefined || newListId !== undefined) {
result = await cardRepo.reorder(ctx.db, {
cardId: existingCard.id,
newIndex: input.index,