Changing for...in loop for performance.

This commit is contained in:
Jeremy Zimmerman 2023-09-22 11:15:03 -04:00
parent 28b402d59b
commit 88414d61f7

View file

@ -44,10 +44,12 @@ export default {
parseQueryParms() {
// Dump the query string parameters into an array. Remove casing on the key for easy compare.
const queryStringParams = [];
// TODO: Modify to not iterate entire prototype chain
for (const param in this.$route.query) {
const params = Object.keys(this.$route.query);
params.forEach((param) => {
queryStringParams[param.toLowerCase()] = this.$route.query[param];
}
});
return queryStringParams;
},
async validateClientTagOnEntry() {