Skip to content

Commit

Permalink
Merge pull request #110 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 var to let
  • Loading branch information
DG-KFuglsang authored Oct 3, 2024
2 parents c2697a3 + a83f884 commit 06a19fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/app/analysis/analysis-selection-configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ 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));
var results = (thunkAPI.getState() as any).entities.analysis;
results = (thunkAPI.getState() as any).entities.analysis;
}

return results;
Expand Down

0 comments on commit 06a19fd

Please sign in to comment.