Version
2.5.3
https://codepen.io/ruchern/pen/jmvWra
Steps to reproduce
Using the following code and assigning params to null does not route correctly.
methods: {
navigate(route, params = null) {
this.$router.push(route, {
params: params
}
}
}
What is expected?
Expects the route to navigate properly even when the param is null.
What is actually happening?
Router is throwing the errror message:
Uncaught TypeError: Cannot use 'in' operator to search for 'id' in null