Skip to content

Commit

Permalink
fix(staff): Prevent fetching authenticators before preloading (#70938)
Browse files Browse the repository at this point in the history
There may be one more place in projects where we preload, but I want to
check if this will work first.
  • Loading branch information
schew2381 committed May 15, 2024
1 parent 893a38b commit 8e8095a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static/app/components/modals/sudoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ class SudoModal extends Component<Props, State> {
const {api} = this.props;

try {
await Promise.all(Object.values(window.__sentry_preload));
const authenticators = await api.requestPromise('/authenticators/');
this.setState({authenticators: authenticators ?? []});
} catch {
Expand Down

0 comments on commit 8e8095a

Please sign in to comment.