Skip to content

Commit

Permalink
Merge pull request #111 from ssi-dk/fix/change-var-to-let-in-analysis…
Browse files Browse the repository at this point in the history
…-selection-config

fix: change let to const
  • Loading branch information
DG-KFuglsang authored Oct 3, 2024
2 parents 06a19fd + 7d2000a commit 9cd8cc3
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 9cd8cc3

Please sign in to comment.