Browse Source

refactor(gui): hook filter api update

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1668/head
Pranav C 3 years ago
parent
commit
adc6045c7a
  1. 4
      packages/nc-gui/components/project/spreadsheet/components/columnFilter.vue

4
packages/nc-gui/components/project/spreadsheet/components/columnFilter.vue

@ -339,7 +339,7 @@ export default {
})
}
} else if (this.hookId || hookId) {
this.$set(this.filters, i, (await this.$api.dbTableFilter.create(this.hookId || hookId, {
this.$set(this.filters, i, (await this.$api.dbTableWebhookFilter.create(this.hookId || hookId, {
...filter,
fk_parent_id: this.parentId
})))
@ -424,7 +424,6 @@ export default {
async deleteFilter(filter, i) {
if (this.shared || !this._isUIAllowed('filterSync')) {
this.filters.splice(i, 1)
// this.$emit('input', this.filters.filter(f => f.fk_column_id && f.comparison_op))
this.$emit('updated')
} else if (filter.id) {
if (!this.autoApply) {
@ -438,7 +437,6 @@ export default {
this.filters.splice(i, 1)
this.$emit('updated')
}
// this.$emit('input', this.filters.filter(f => f.fk_column_id && f.comparison_op))
this.$tele.emit('filter:delete')
}
}

Loading…
Cancel
Save