fix: types
This commit is contained in:
@@ -54,7 +54,7 @@ export const listRouter = createTRPCRouter({
|
|||||||
createdBy: userId,
|
createdBy: userId,
|
||||||
boardId: board.id,
|
boardId: board.id,
|
||||||
index:
|
index:
|
||||||
latestListIndex || latestListIndex === 0 ? latestListIndex + 1 : 0,
|
(latestListIndex ?? latestListIndex === 0) ? latestListIndex + 1 : 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!result)
|
if (!result)
|
||||||
|
|||||||
Reference in New Issue
Block a user