Skip to content

Commit

Permalink
fix: crash while opening plugin settings (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeIlLeone authored May 27, 2024
1 parent 49fc063 commit 03a1e7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/coremods/settings/pages/Addons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ interface BreadcrumbProps {

const logger = Logger.coremod("AddonSettings");

const Breadcrumbs = webpack.getBySource<React.ComponentClass<BreadcrumbProps>>(
/\w+.breadcrumbFinalWrapper/,
)!;
const Breadcrumbs = await webpack.waitForModule<React.ComponentClass<BreadcrumbProps>>(
webpack.filters.bySource(/\w+.breadcrumbFinalWrapper/),
);

export enum AddonType {
Plugin = "plugin",
Expand Down

0 comments on commit 03a1e7e

Please sign in to comment.