If id is string convert to number
This commit is contained in:
@@ -52,6 +52,7 @@ export default {
|
|||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
open: ({ commit }, { id, type = "movie" }) => {
|
open: ({ commit }, { id, type = "movie" }) => {
|
||||||
|
if (!isNaN(id)) id = Number(id);
|
||||||
commit("SET_OPEN", { id, type });
|
commit("SET_OPEN", { id, type });
|
||||||
updateQueryParams(id, type);
|
updateQueryParams(id, type);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user