File tree 1 file changed +8
-2
lines changed
packages/pluggableWidgets/gallery-web/src/stores
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { compactArray , fromCompactArray } from "@mendix/widget-plugin-filtering/condition-utils" ;
2
+ import { CustomFilterHost } from "@mendix/widget-plugin-filtering/stores/generic/CustomFilterHost" ;
2
3
import { HeaderFiltersStore } from "@mendix/widget-plugin-filtering/stores/generic/HeaderFiltersStore" ;
3
4
import { generateUUID } from "@mendix/widget-plugin-platform/framework/generate-uuid" ;
4
5
import { SortAPIProvider } from "@mendix/widget-plugin-sorting/providers/SortAPIProvider" ;
@@ -25,8 +26,13 @@ export class RootGalleryStore {
25
26
filtersChannelName : `datagrid/${ generateUUID ( ) } `
26
27
} ;
27
28
28
- const headerViewState = this . getDsViewState ( props ) ;
29
- this . headerFiltersStore = new HeaderFiltersStore ( props , this . staticInfo , headerViewState ) ;
29
+ this . headerFiltersStore = new HeaderFiltersStore ( {
30
+ filterList : props . filterList ,
31
+ filterChannelName : this . staticInfo . filtersChannelName ,
32
+ headerInitFilter : this . getDsViewState ( props ) ,
33
+ sharedInitFilter : [ ] ,
34
+ customFilterHost : new CustomFilterHost ( )
35
+ } ) ;
30
36
this . sortProvider = new SortAPIProvider ( props ) ;
31
37
}
32
38
You can’t perform that action at this time.
0 commit comments