0
0
Fork 0

fix: not null variable

This commit is contained in:
Alex Moreno 2024-09-18 13:24:21 +02:00
parent 3906fc386f
commit f86525e31d
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ function setUserParams(watchedParams, watchedOrder) {
function sanitizer(params) { function sanitizer(params) {
for (const [key, value] of Object.entries(params)) { for (const [key, value] of Object.entries(params)) {
if (typeof value == 'object') { if (value && typeof value == 'object') {
const param = Object.values(value)[0]; const param = Object.values(value)[0];
if (typeof param == 'string') params[key] = param.replaceAll('%', ''); if (typeof param == 'string') params[key] = param.replaceAll('%', '');
} }