Skip to content

Commit

Permalink
Merge pull request #8597 from ever-co/fix/#8567-time-off-filter
Browse files Browse the repository at this point in the history
[Fix] Filters Not Working on “Time Off” Screen (CARDS_GRID Layout)
  • Loading branch information
rahul-rocket authored Dec 19, 2024
2 parents 7d585d5 + aa78eed commit 7472935
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/gauzy/src/app/pages/time-off/time-off.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export class TimeOffComponent extends PaginationFilterBaseComponent implements O
filter(() => this._isGridLayout),
tap(() => this.refreshPagination()),
tap(() => (this.timeOffs = [])),
tap(() => this.getTimeOffs()),
untilDestroyed(this)
)
.subscribe();
Expand Down Expand Up @@ -605,7 +606,9 @@ export class TimeOffComponent extends PaginationFilterBaseComponent implements O
}

private async _loadGridLayoutData() {
if (this._isGridLayout) await this.sourceSmartTable.getElements();
if (this._isGridLayout) {
this.timeOffs = await this.sourceSmartTable.getElements()
};
}

private _createRecord() {
Expand Down

0 comments on commit 7472935

Please sign in to comment.