Skip to content

Commit b30263f

Browse files
authored
Add fallback searchKey to fix continuous refreshing (#2355)
1 parent f479c50 commit b30263f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/projects/upgrade/src/app/core/local-storage/local-storage.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class LocalStorageService {
4141
isLoadingExperimentExport: false,
4242
skipExperiment: 0,
4343
totalExperiments: null,
44-
searchKey: experimentSearchKey as EXPERIMENT_SEARCH_KEY,
44+
searchKey: (experimentSearchKey as EXPERIMENT_SEARCH_KEY) || EXPERIMENT_SEARCH_KEY.ALL,
4545
searchString: experimentSearchString || null,
4646
sortKey: (experimentSortKey as EXPERIMENT_SORT_KEY) || EXPERIMENT_SORT_KEY.NAME,
4747
sortAs: (experimentSortType as SORT_AS_DIRECTION) || SORT_AS_DIRECTION.ASCENDING,
@@ -73,7 +73,7 @@ export class LocalStorageService {
7373
activeDetailsTabIndex: 0,
7474
skipFlags: 0,
7575
totalFlags: null,
76-
searchKey: featureFlagSearchKey as FLAG_SEARCH_KEY,
76+
searchKey: (featureFlagSearchKey as FLAG_SEARCH_KEY) || FLAG_SEARCH_KEY.ALL,
7777
searchValue: featureFlagSearchString || null,
7878
sortKey: (featureFlagSortKey as FLAG_SORT_KEY) || FLAG_SORT_KEY.NAME,
7979
sortAs: (featureFlagSortType as SORT_AS_DIRECTION) || SORT_AS_DIRECTION.ASCENDING,
@@ -89,7 +89,7 @@ export class LocalStorageService {
8989
allFeatureFlagSegmentsExclusion: null,
9090
skipSegments: 0,
9191
totalSegments: null,
92-
searchKey: segmentSearchKey as SEGMENT_SEARCH_KEY,
92+
searchKey: (segmentSearchKey as SEGMENT_SEARCH_KEY) || SEGMENT_SEARCH_KEY.ALL,
9393
searchString: segmentSearchString || null,
9494
sortKey: (segmentSortKey as SEGMENT_SORT_KEY) || SEGMENT_SORT_KEY.NAME,
9595
sortAs: (segmentSortType as SORT_AS_DIRECTION) || SORT_AS_DIRECTION.ASCENDING,

0 commit comments

Comments
 (0)