Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information