Fixing build unit test issues. Attempt #1

This commit is contained in:
Jeremy-Z 2023-09-22 13:01:34 -04:00
parent 2912d11edb
commit 01a7005209

View file

@ -45,9 +45,11 @@ export default {
// Dump the query string parameters into an array. Remove casing on the key for easy compare.
const queryStringParams = [];
Object.keys(this.$route.query).forEach((param) => {
queryStringParams[param.toLowerCase()] = this.$route.query[param];
});
if (this.$route?.query) {
Object.keys(this.$route.query).forEach((param) => {
queryStringParams[param.toLowerCase()] = this.$route.query[param];
});
}
return queryStringParams;
},