Skip to content

Commit

Permalink
Fixed add condition error on editing default layer clsoes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Rony Nedkov committed Feb 26, 2024
1 parent e98c791 commit 839933e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Filters/LayerEditDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ export default {
}
},
createCondition: function () {
this.filter.createCondition();
if (!this.filter) {
this.filter = this.layer.createFilter();
} else {
this.filter.createCondition();
}
},
updateCondition: function (update) {
let index = this.conditionUpdates.findIndex(
Expand Down

0 comments on commit 839933e

Please sign in to comment.