Skip to content

Commit

Permalink
SVYX-800 TiNG Foundset List not updated when foundset size is 0 - update
Browse files Browse the repository at this point in the history
  • Loading branch information
cPecican committed Feb 22, 2024
1 parent d48b3e9 commit 2d58e98
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,14 @@ export class CustomRenderedComponentsFoundsetList extends BaseList {

svyOnChanges(changes: SimpleChanges) {
super.svyOnChanges(changes);
if (changes.foundset && changes.foundset.currentValue !== changes.foundset.previousValue) {
if (changes.foundset) {
if (this.servoyApi.isInDesigner()) return;
const prevValue = changes.foundset.previousValue as IFoundset;
if (prevValue) {
prevValue.removeChangeListener(this.foundsetListener);
}


// load data
this.loadDataFromFoundset();

// addFoundsetListener
this.foundset.addChangeListener(this.foundsetListener);
this.foundset && this.foundset.addChangeListener(this.foundsetListener);
}
}

Expand Down

0 comments on commit 2d58e98

Please sign in to comment.