Skip to content

Commit 7b4ee43

Browse files
committed
fix: set init sort in gallery
1 parent 87966bd commit 7b4ee43

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ export class GalleryStore extends BaseControllerHost {
6666
});
6767

6868
this._filtersHost = new CustomFilterHost();
69-
this._sortHost = new SortStoreHost();
69+
70+
this._sortHost = new SortStoreHost({
71+
initSort: spec.gate.props.datasource.sortOrder
72+
});
7073

7174
const paramCtrl = new QueryParamsController(this, this._query, this._filtersHost, this._sortHost);
7275

0 commit comments

Comments
 (0)