Skip to content

Commit

Permalink
fix: change var to let
Browse files Browse the repository at this point in the history
  • Loading branch information
DG-KFuglsang committed Oct 3, 2024
1 parent c2697a3 commit a83f884
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 a83f884

Please sign in to comment.