Skip to content

Commit

Permalink
fix: change let to const
Browse files Browse the repository at this point in the history
  • Loading branch information
DG-KFuglsang committed Oct 3, 2024
1 parent a83f884 commit 7d2000a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/app/analysis/analysis-selection-configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const clearSelection = createAction("analysis/clearSelection");

export const selectAllThunk = createAsyncThunk('analysis/selectAllThunk', async (search: Search, thunkAPI) => {
search.searchFunc(search.query, 1000);

let results = (thunkAPI.getState() as any).entities.analysis;
while (!results || Object.keys(results).length === 0 || results.length === 0) {
await new Promise(resolve => setTimeout(resolve, 10));
Expand Down Expand Up @@ -81,7 +81,7 @@ export const selectionReducer = createReducer(initialState, (builder) => {
}, {} as DataTableSelection<AnalysisResult>)
})
.addCase(selectAllThunk.fulfilled, (state, action) => {
let analysis = action.payload;
const analysis = action.payload;

state.selection = Object.keys(analysis)
.map(x => {
Expand Down

0 comments on commit 7d2000a

Please sign in to comment.