feat(list): add info dialoge to show list description #2368

Merged
konrad merged 6 commits from feature/list-description into main 2022-09-15 12:36:44 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 6e0e4f8f35 - Show all commits

View File

@ -344,7 +344,7 @@ const router = createRouter({
meta: {
showAsModal: true,
},
props: route => ({ listId: parseInt(route.params.listId as string) }),
props: route => ({ listId: Number(route.params.listId as string) }),
konrad marked this conversation as resolved Outdated

Picky:
We should start to use Number() here instead (also in all the other route definitions).

Reason:
We currently don't define the radix parameter and parseInt(someVar, 10) is not as easy to read as Number(someVar).
That we start having problems with radix is very unlikely though.

Picky: We should start to use `Number()` here instead (also in all the other route definitions). Reason: We currently don't define the radix parameter and `parseInt(someVar, 10)` is not as easy to read as `Number(someVar)`. That we start having problems with radix is very unlikely though.

Makes sense. Changed it.

Makes sense. Changed it.
},
{
path: '/lists/:listId',