Skip to content

Commit 12805f0

Browse files
committed
always skip ineligible guides in select func
1 parent 7963ad8 commit 12805f0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/client/src/clients/guide/client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ const select = (state: StoreState, filters: SelectFilterParams = {}) => {
164164
const guide = state.previewGuides[guideKey] || state.guides[guideKey];
165165
if (!guide) continue;
166166

167+
const ineligible = !!state.ineligibleGuides[guide.key];
168+
if (ineligible) continue;
169+
167170
const affirmed = predicate(guide, {
168171
location,
169172
filters,

0 commit comments

Comments
 (0)