You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a query param is not present the query value is `undefined`, but the type is only `string | null`.
Here is the extract of code where I had this problem:
```
const route = useRoute();
const sortBy = ref(route.query.sort_by.toString())
```
I got `Cannot read property 'toString' of undefined` but the linter didn't give any errors.
0 commit comments