Compare commits
1 Commits
fix/react-
...
fix/update
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b60c48838d |
@@ -945,7 +945,7 @@ export const cardRouter = createTRPCRouter({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input.index !== undefined) {
|
if (input.index !== undefined || newListId !== undefined) {
|
||||||
result = await cardRepo.reorder(ctx.db, {
|
result = await cardRepo.reorder(ctx.db, {
|
||||||
cardId: existingCard.id,
|
cardId: existingCard.id,
|
||||||
newIndex: input.index,
|
newIndex: input.index,
|
||||||
|
|||||||
Reference in New Issue
Block a user