Skip to content

Commit

Permalink
Merge pull request #884 from gisaia/fix/selected
Browse files Browse the repository at this point in the history
Check if there is already a checked data
  • Loading branch information
MohamedHamouGisaia authored Nov 12, 2024
2 parents 8e1d160 + e64432f commit aedc67d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,10 @@ export class ResultListComponent implements OnInit, DoCheck, OnChanges, AfterVie
this.isPreviousPageRequested = false;

// If the selected item is not in the current list of items, close the detail
const selectedItemInData = this.rowItemList
const selectedItemInData = !!this.selectedGridItem && this.rowItemList
.map(item => <string>item.get(this.fieldsConfiguration.idFieldName))
.includes(this.selectedGridItem.identifier);
if (!(!!this.selectedGridItem && !!changes['rowItemList'].currentValue && selectedItemInData)) {
if (!(!!changes['rowItemList'].currentValue && selectedItemInData)) {
this.closeDetail(true);
}

Expand Down

0 comments on commit aedc67d

Please sign in to comment.