adminforth 2.4.0-next.257 → 2.4.0-next.259
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -412,7 +412,7 @@ async function init() {
|
|
|
412
412
|
return {
|
|
413
413
|
field,
|
|
414
414
|
operator,
|
|
415
|
-
value: JSON.parse(
|
|
415
|
+
value: JSON.parse((route.query[k] as string))
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
418
|
if (filters.length) {
|
|
@@ -494,7 +494,7 @@ watch(() => filtersStore.filters, async (to, from) => {
|
|
|
494
494
|
const currentQ = currentQuery();
|
|
495
495
|
filtersStore.filters.forEach(f => {
|
|
496
496
|
if (f.value !== undefined && f.value !== null && f.value !== '') {
|
|
497
|
-
query[`filter__${f.field}__${f.operator}`] =
|
|
497
|
+
query[`filter__${f.field}__${f.operator}`] = (JSON.stringify(f.value));
|
|
498
498
|
}
|
|
499
499
|
});
|
|
500
500
|
// set every key in currentQ which starts with filter_ to undefined if it is not in query
|