Skip to content

Commit

Permalink
#181: fix selection of versions
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianHanfland committed Dec 5, 2024
1 parent c0223d9 commit ca4ac94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions website/src/versions/data/loadPlanningHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ export function useLoadPlannings(planningIds: string[]) {
dispatch(zipTracksActions.removeZipTracks());
dispatch(zipTracksActions.setIsLoading(true));
Promise.all([planningIds.map((planningId) => loadServerFile(planningId, dispatch))])
.then(() => {
setTimeout(() => setStartAndEndTime(dispatch), 500);
})
.then(() => setTimeout(() => setStartAndEndTime(dispatch), 500))
.then(() => dispatch(zipTracksActions.setIsLoading(false)));
}, []);
}
2 changes: 1 addition & 1 deletion website/src/versions/store/zipTracks.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const zipTracksSlice = createSlice({
}
},
setSelectVersions: (state: ZipTracksState, action: PayloadAction<string[]>) => {
state.selectedVersions = action.payload;
state.selectedVersions = [...state.selectedVersions, ...action.payload];
},
removeZipTracks: (state: ZipTracksState) => {
state.tracks = {};
Expand Down

0 comments on commit ca4ac94

Please sign in to comment.