Skip to content

Commit

Permalink
use allSettled
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Nov 18, 2024
1 parent 401c7ca commit 52bde0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/packages/looker/src/worker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ const imputeOverlayFromPath = async (
)
);
}
await Promise.all(promises);
// if some paths fail to load, it's okay, we can still proceed
// hence we use `allSettled` instead of `all`
await Promise.allSettled(promises);
return;
}

Expand Down

0 comments on commit 52bde0e

Please sign in to comment.