Browse Source

fix: delete filters when switching to bulk operation

pull/7246/head
Pranav C 11 months ago
parent
commit
e7f4a70ef5
  1. 4
      packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue

4
packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue

@ -213,8 +213,8 @@ const applyChanges = async (hookId?: string, nested = false, isConditionSupporte
// it's used for bulk webhooks with filters since bulk webhooks don't support conditions at the moment // it's used for bulk webhooks with filters since bulk webhooks don't support conditions at the moment
if (!isConditionSupported) { if (!isConditionSupported) {
// iterate in reverse order and delete all filters, reverse order is for getting the correct index // iterate in reverse order and delete all filters, reverse order is for getting the correct index
for (let i = localNestedFilters.value.length - 1; i >= 0; i--) { for (let i = filters.value.length - 1; i >= 0; i--) {
await deleteFilter(localNestedFilters.value[i], i) await deleteFilter(filters.value[i], i)
} }
} }

Loading…
Cancel
Save