aboutsummaryrefslogtreecommitdiff
path: root/src/components/PluginSettings/index.tsx
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-05-05 16:48:35 +0200
committerVendicated <vendicated@riseup.net>2023-05-05 16:57:58 +0200
commit244d10dc9eafe5b9daf266e3a3880c888e4de540 (patch)
tree7be248df0997a861637efdeae209d7c578fac160 /src/components/PluginSettings/index.tsx
parentc25bc0ff4b597131ed223fd5c1a8cf75ac5282e3 (diff)
downloadVencord-244d10dc9eafe5b9daf266e3a3880c888e4de540.tar.gz
Vencord-244d10dc9eafe5b9daf266e3a3880c888e4de540.tar.bz2
Vencord-244d10dc9eafe5b9daf266e3a3880c888e4de540.zip
[skip ci] Fix handleComponentFailed spam
Diffstat (limited to 'src/components/PluginSettings/index.tsx')
-rw-r--r--src/components/PluginSettings/index.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx
index f3a5cd3..5a367c8 100644
--- a/src/components/PluginSettings/index.tsx
+++ b/src/components/PluginSettings/index.tsx
@@ -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[]) {