admin/plugins: display errored plugins first
Massimo Melina committed
Feb 8, 2025 at 15:09 UTC
4c03765911ccfd5aeebf735a4a397739911bbc65
1 file changed
+1
-1
admin/src/InstalledPlugins.ts
+1
-1
@@ -22,7 +22,7 @@ export default function InstalledPlugins({ updates }: { updates?: true }) {
22
const { list, error, setList, initializing } = useApiList(updates ? 'get_plugin_updates' : 'get_plugins')
23
useEffect(() => {
24
setList(list =>
25
- _.sortBy(list, x => (x.started || x.error ? '0' : '1') + treatPluginName(x.id)))
25
+ _.sortBy(list, x => (x.error ? 0 : x.started ? 1 : 2) + treatPluginName(x.id)))
26
}, [list.length]);
27
const size = 'small'
28
const { pause, pauseButton } = usePauseButton("plugins", () => getSingleConfig(CFG.suspend_plugins).then(x => !x), {