From 66fcff4060313a46be35849562ed6f166c5bafc9 Mon Sep 17 00:00:00 2001 From: hlomzik Date: Fri, 21 Feb 2025 16:48:02 +0000 Subject: [PATCH] fix: LEAP-1856: Fix filters not being sent to Bulk API Fix the typo in `filterSnapshot` --- web/libs/datamanager/src/stores/AppStore.js | 2 +- web/libs/datamanager/src/stores/Tabs/tab.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/libs/datamanager/src/stores/AppStore.js b/web/libs/datamanager/src/stores/AppStore.js index 78a914305576..2d7b9e21e4f9 100644 --- a/web/libs/datamanager/src/stores/AppStore.js +++ b/web/libs/datamanager/src/stores/AppStore.js @@ -126,7 +126,7 @@ export const AppStore = types }, get currentFilter() { - return self.currentView.filterSnposhot; + return self.currentView.filterSnapshot; }, })) .volatile(() => ({ diff --git a/web/libs/datamanager/src/stores/Tabs/tab.js b/web/libs/datamanager/src/stores/Tabs/tab.js index a059f7b7492f..bc02aec719de 100644 --- a/web/libs/datamanager/src/stores/Tabs/tab.js +++ b/web/libs/datamanager/src/stores/Tabs/tab.js @@ -158,7 +158,7 @@ export const Tab = types return self.selectedCount === self.dataStore.total; }, - get filterSnposhot() { + get filterSnapshot() { return { conjunction: self.conjunction, items: self.serializedFilters, @@ -176,7 +176,7 @@ export const Tab = types get query() { return JSON.stringify({ - filters: self.filterSnposhot, + filters: self.filterSnapshot, ordering: self.ordering.toJSON(), hiddenColumns: self.hiddenColumnsSnapshot, }); @@ -186,7 +186,7 @@ export const Tab = types if (self.virtual) { return { title: self.title, - filters: self.filterSnposhot, + filters: self.filterSnapshot, ordering: self.ordering.toJSON(), }; } @@ -199,7 +199,7 @@ export const Tab = types ordering: self.ordering.toJSON(), type: self.type, target: self.target, - filters: self.filterSnposhot, + filters: self.filterSnapshot, hiddenColumns: getSnapshot(self.hiddenColumns), columnsWidth: self.columnsWidth.toPOJO(), columnsDisplayType: self.columnsDisplayType.toPOJO(),