From b30508aef8cd19625640ee650b58b557bb3fdd24 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 15 Nov 2022 17:29:31 +0100 Subject: better handling for settings ui errors --- src/components/PluginSettings/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/components/PluginSettings') diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx index 9600ef7..a0dfc24 100644 --- a/src/components/PluginSettings/index.tsx +++ b/src/components/PluginSettings/index.tsx @@ -31,6 +31,7 @@ import { Alerts, Button, Forms, Margins, Parser, React, Select, Switch, Text, Te import ErrorBoundary from "../ErrorBoundary"; import { ErrorCard } from "../ErrorCard"; import { Flex } from "../Flex"; +import { handleComponentFailed } from "../handleComponentFailed"; import PluginModal from "./PluginModal"; import * as styles from "./styles"; @@ -312,6 +313,9 @@ export default ErrorBoundary.wrap(function Settings() { ); +}, { + message: "Failed to render the Plugin Settings. If this persists, try using the installer to reinstall!", + onError: handleComponentFailed, }); function makeDependencyList(deps: string[]) { -- cgit