fix: types

This commit is contained in:
Henry
2024-11-20 18:23:17 +00:00
parent ac993b448a
commit da061430b3

View File

@@ -54,7 +54,7 @@ export const listRouter = createTRPCRouter({
createdBy: userId,
boardId: board.id,
index:
latestListIndex || latestListIndex === 0 ? latestListIndex + 1 : 0,
(latestListIndex ?? latestListIndex === 0) ? latestListIndex + 1 : 0,
});
if (!result)