Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
TitleQuery - Params (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
jocteau authored Jun 7, 2021
1 parent d857982 commit a5dcb05
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 29 deletions.
58 changes: 45 additions & 13 deletions dist/all.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/all.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/all.min.js.map

Large diffs are not rendered by default.

58 changes: 45 additions & 13 deletions dist/test.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion src/cn-flex-form.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,13 @@ function CNFlexFormService(
}
else {
const exp = service.replaceArrayIndex(queryParams[key], select.arrayIndex);
const val = service.parseExpression(exp).get();
let val = null, variables = exp.split('||');
for (let exp of variables) {
val = service.parseExpression(exp.trim()).get();
if (val) {
break;
}
}
acc[key] = val;
}
return acc;
Expand Down

0 comments on commit a5dcb05

Please sign in to comment.