Browse Source

fix(gui): create new object to avoid updating same object ref

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3709/head
Pranav C 2 years ago
parent
commit
cc684f7c43
  1. 4
      packages/nc-gui/composables/useViewFilters.ts

4
packages/nc-gui/composables/useViewFilters.ts

@ -183,12 +183,12 @@ export function useViewFilters(
}
const addFilter = () => {
filters.value.push(placeholderFilter)
filters.value.push({ ...placeholderFilter })
$e('a:filter:add', { length: filters.value.length })
}
const addFilterGroup = async () => {
const child = placeholderFilter
const child = { ...placeholderFilter }
const placeHolderGroupFilter: Filter = {
is_group: true,
status: 'create',

Loading…
Cancel
Save