Skip to content

Commit

Permalink
fix(proxy-list): Limit minimum proxy list size
Browse files Browse the repository at this point in the history
Prevent deletion of element of proxy list below default size
  • Loading branch information
Jo-Byr committed Jan 9, 2025
1 parent ef89aba commit b307fc4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vue2-components/src/widgets/Proxy/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ export default {
return getComponentProps(this.computedLayout, index);
},
deleteEntry(index) {
this.model.splice(index, 1);
this.dirty(this.name);
if (this.computedSize > Number(this.size)) {
this.model.splice(index, 1);
this.dirty(this.name);
}
},
},
inject: ['data', 'properties', 'domains', 'dirty'],
Expand Down

0 comments on commit b307fc4

Please sign in to comment.