fix(VnTable): sanitizer value is defined
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Satorres 2024-09-17 15:04:58 +02:00
parent 6886c18ddc
commit 4f662375cd
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,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('%', '');
} }