@fluid-topics/ft-search-sort-selector 1.3.52 → 1.3.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,7 +75,7 @@ class FtSearchSortSelector extends withI18n(FtSearchComponent) {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
// Focus on first option in designer when the list of configured sorts changes
|
|
78
|
-
if (props.has("configuredSortOptions")) {
|
|
78
|
+
if (props.has("configuredSortOptions") && props.get("configuredSortOptions") !== undefined) {
|
|
79
79
|
this.selectedSort = (_e = displayedSortOptions[0]) === null || _e === void 0 ? void 0 : _e.id;
|
|
80
80
|
if (this.selectedSort && this.selectedSort != this.currentSortId) {
|
|
81
81
|
(_f = this.stateManager) === null || _f === void 0 ? void 0 : _f.setSortId(this.selectedSort);
|