From c9e15b09abd72831fa98802830bedadb0918fbcb Mon Sep 17 00:00:00 2001 From: Vincent T Date: Wed, 11 Dec 2024 16:39:00 -0500 Subject: [PATCH] frontend: PluginSettings: Fix non responsive enable toggle Signed-off-by: Vincent T --- .../src/components/App/PluginSettings/PluginSettings.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/App/PluginSettings/PluginSettings.tsx b/frontend/src/components/App/PluginSettings/PluginSettings.tsx index c55060b610..ca2a9ec815 100644 --- a/frontend/src/components/App/PluginSettings/PluginSettings.tsx +++ b/frontend/src/components/App/PluginSettings/PluginSettings.tsx @@ -240,6 +240,7 @@ export function PluginSettingsPure(props: PluginSettingsPureProps) { }, { header: t('translation|Enable'), + accessorFn: (plugin: PluginInfo) => plugin.isEnabled, Cell: ({ row: { original: plugin } }: { row: MRT_Row }) => { if (!plugin.isCompatible || !helpers.isElectron()) { return null; @@ -247,15 +248,13 @@ export function PluginSettingsPure(props: PluginSettingsPureProps) { return ( switchChangeHanlder(plugin)} color="primary" name={plugin.name} /> ); }, - sort: (a: PluginInfo, b: PluginInfo) => - a.isEnabled === b.isEnabled ? 0 : a.isEnabled ? -1 : 1, }, ] // remove the enable column if we're not in app mode