Skip to content

Commit d7e9c23

Browse files
committed
fix: resolve type issues
1 parent 29f86ab commit d7e9c23

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

packages/pluggableWidgets/gallery-web/src/stores/GalleryStore.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class GalleryStore extends BaseControllerHost {
6464

6565
this.name = spec.name;
6666

67-
this._query = new DatasourceController(this, { gate: spec.gate });
67+
this._query = new DatasourceController(this, spec.gate);
6868

6969
this.paging = new PaginationController(this, {
7070
query: this._query,
@@ -74,10 +74,7 @@ export class GalleryStore extends BaseControllerHost {
7474
showTotalCount: spec.showTotalCount
7575
});
7676

77-
this.selectionCountStore = new SelectionCountStore(spec.gate, {
78-
singular: "%d item selected",
79-
plural: "%d items selected"
80-
});
77+
this.selectionCountStore = new SelectionCountStore(spec.gate);
8178

8279
this._filtersHost = new CustomFilterHost();
8380

@@ -101,10 +98,7 @@ export class GalleryStore extends BaseControllerHost {
10198

10299
this.loaderCtrl = new DerivedLoaderController(this._query, spec.refreshIndicator);
103100

104-
new RefreshController(this, {
105-
delay: 0,
106-
query: this._query.derivedQuery
107-
});
101+
new RefreshController(this, this._query, 0);
108102

109103
const useStorage = spec.storeFilters || spec.storeSort;
110104
if (useStorage) {

0 commit comments

Comments
 (0)