feat(list): add info dialoge to show list description #2368
|
@ -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
|
||||
},
|
||||
{
|
||||
path: '/lists/:listId',
|
||||
|
|
Reference in New Issue
Block a user
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 asNumber(someVar)
.That we start having problems with radix is very unlikely though.
Makes sense. Changed it.