mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-13 08:33:01 -04:00
[skip ci] Fix handleComponentFailed spam
This commit is contained in:
parent
c25bc0ff4b
commit
244d10dc9e
5 changed files with 38 additions and 4 deletions
|
@ -33,6 +33,7 @@ import Logger from "@utils/Logger";
|
|||
import { Margins } from "@utils/margins";
|
||||
import { classes, LazyComponent, useAwaiter } from "@utils/misc";
|
||||
import { openModalLazy } from "@utils/modal";
|
||||
import { onlyOnce } from "@utils/onlyOnce";
|
||||
import { Plugin } from "@utils/types";
|
||||
import { findByCode, findByPropsLazy } from "@webpack";
|
||||
import { Alerts, Button, Card, Forms, Parser, React, Select, Text, TextInput, Toasts, Tooltip } from "@webpack/common";
|
||||
|
@ -341,7 +342,7 @@ export default ErrorBoundary.wrap(function PluginSettings() {
|
|||
);
|
||||
}, {
|
||||
message: "Failed to render the Plugin Settings. If this persists, try using the installer to reinstall!",
|
||||
onError: handleComponentFailed,
|
||||
onError: onlyOnce(handleComponentFailed),
|
||||
});
|
||||
|
||||
function makeDependencyList(deps: string[]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue