Commit 7e483ed5 authored by Andrey Azov's avatar Andrey Azov
Browse files

Remove commented redux action

parent 4d0db9e8
Pipeline #295109 passed with stages
in 5 minutes and 21 seconds
...@@ -107,30 +107,6 @@ export const fetchPopularSpecies = createAsyncThunk( ...@@ -107,30 +107,6 @@ export const fetchPopularSpecies = createAsyncThunk(
} }
); );
// export const ensureSpeciesIsCommitted =
// (genomeId: string): ThunkAction<void, any, void, Action<string>> =>
// async (dispatch, getState: () => RootState) => {
// const state = getState();
// const committedSpecies = getCommittedSpecies(state);
// const genomeInfo = getGenomeInfoById(state, genomeId);
// if (getCommittedSpeciesById(state, genomeId) || !genomeInfo) {
// return;
// }
// const newCommittedSpecies = [
// ...committedSpecies,
// {
// ...pickBy(genomeInfo, (_, key) => {
// return key !== 'example_objects';
// }),
// isEnabled: true
// }
// ] as CommittedItem[];
// dispatch(updateCommittedSpecies(newCommittedSpecies));
// speciesSelectorStorageService.saveSelectedSpecies(newCommittedSpecies);
// };
export const loadStoredSpecies = export const loadStoredSpecies =
(): ThunkAction<void, any, void, Action<string>> => (dispatch) => { (): ThunkAction<void, any, void, Action<string>> => (dispatch) => {
const storedSpecies = speciesSelectorStorageService.getSelectedSpecies(); const storedSpecies = speciesSelectorStorageService.getSelectedSpecies();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment