diff --git a/src/renderer/components/WorkspaceTabTableFilters.vue b/src/renderer/components/WorkspaceTabTableFilters.vue
index 2ae51437..2e40d59e 100644
--- a/src/renderer/components/WorkspaceTabTableFilters.vue
+++ b/src/renderer/components/WorkspaceTabTableFilters.vue
@@ -44,13 +44,6 @@
class="form-input ml-2 input-sm"
>
-
+
@@ -89,13 +89,11 @@ export default {
methods: {
addRow () {
this.rows.push({ active: true, field: this.fields[0].name, op: '=', value: '', value2: '' });
- this.$emit('filter-change');
+ this.$emit('filter-change', this.rows);
},
removeRow (i) {
- if (this.rows.length >= 2) {
- this.rows = this.rows.filter((_, idx) => idx !== i);
- this.$emit('filter-change');
- }
+ this.rows = this.rows.filter((_, idx) => idx !== i);
+ this.$emit('filter-change', this.rows);
},
doFilter () {
const clausoles = this.rows.filter(el => el.active).map(el => this.createClausole(el));