Skip to content

Commit

Permalink
fix: filter view state in interactive data view initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
markuczy committed Nov 12, 2024
1 parent c83e05e commit 13299d1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ export class FilterViewComponent implements OnInit {
.sort((a, b) => columnIds.indexOf(a.columnId) - columnIds.indexOf(b.columnId))
})
)
this.componentStateChanged.emit({
filters: this.filters,
})
}

@ViewChild(OverlayPanel) panel!: OverlayPanel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,23 @@ export class InteractiveDataViewComponent implements OnInit, AfterContentInit {
)
}

let filterViewComponentState$: Observable<FilterViewComponentState | Record<string, never>> =
this.filterViewComponentState$
if (this.disableFilterView) {
filterViewComponentState$ = filterViewComponentState$.pipe(
startWith({
filters: this.filters,
})
)
}

combineLatest([
columnGroupSelectionComponentState$.pipe(timestamp()),
customGroupColumnSelectorComponentState$.pipe(timestamp()),
this.dataLayoutComponentState$.pipe(timestamp()),
dataListGridSortingComponentState$.pipe(timestamp()),
this.dataViewComponentState$.pipe(timestamp()),
this.filterViewComponentState$.pipe(timestamp()),
filterViewComponentState$.pipe(timestamp()),
])
.pipe(
map((componentStates) => {
Expand Down

0 comments on commit 13299d1

Please sign in to comment.