Skip to content
This repository was archived by the owner on Apr 30, 2022. It is now read-only.

Commit 3be564f

Browse files
committed
Fix jsonPath/jsonValue field names
1 parent 17b512f commit 3be564f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/templates/core/functions/getQueryString.hbs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ function formatSelector(s: any, v: any): [string, string] {
33
return [s, (v as Date).toISOString()];
44
} else if (Array.isArray(v)) {
55
return [s, Array(v).join(',')];
6-
} else if (typeof v === 'object' && v.jsonPath) {
7-
return formatSelector(`${v.jsonPath}.${s}`, v.value);
6+
} else if (typeof v === 'object' && v.jsonValue) {
7+
if (v.jsonPath) {
8+
return formatSelector(`${v.jsonPath}.${s}`, v.jsonValue);
9+
} else {
10+
return formatSelector(s, v.jsonValue);
11+
}
812
} else {
913
return [String(s), String(v)];
1014
}

0 commit comments

Comments
 (0)