Skip to content

Commit 997cf1f

Browse files
undo accidental remove
1 parent 5abe2f0 commit 997cf1f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/compass-indexes/src/modules/search-indexes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,15 @@ export const fetchSearchIndexes = (): IndexesThunkAction<
650650
};
651651
};
652652

653+
export const refreshSearchIndexes = (): IndexesThunkAction<
654+
Promise<void>,
655+
FetchSearchIndexesActions
656+
> => {
657+
return async (dispatch) => {
658+
await dispatch(fetchIndexes(FetchReasons.REFRESH));
659+
};
660+
};
661+
653662
export const pollSearchIndexes = (): IndexesThunkAction<
654663
Promise<void>,
655664
FetchSearchIndexesActions

0 commit comments

Comments
 (0)