Browse Source

refactor(nc-gui): remove spread for placeholderFilter

pull/4969/head
Wing-Kam Wong 2 years ago
parent
commit
4b3b1b3dcc
  1. 5
      packages/nc-gui/composables/useViewFilters.ts

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

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

Loading…
Cancel
Save