Fix duplicate API call spam due to incorrect comparison of view filters

This commit is contained in:
Andrew Kingston 2024-10-09 09:59:05 +01:00
parent c1333c66db
commit 6916269cbb
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ export const initialise = context => {
if ($view?.id !== $datasource.id) { if ($view?.id !== $datasource.id) {
return return
} }
if (JSON.stringify($filter) !== JSON.stringify($view.query)) { if (JSON.stringify($filter) !== JSON.stringify($view.queryUI)) {
await datasource.actions.saveDefinition({ await datasource.actions.saveDefinition({
...$view, ...$view,
query: $filter, query: $filter,