admin/plugins: move up plugins with badApi errors

Massimo Melina committed Apr 6, 2026 at 11:45 UTC 527b6025a50658809e7baec88601f882ad9052a4
1 file changed +1 -1
admin/src/InstalledPlugins.ts
+1 -1
@@ -24,7 +24,7 @@ export default function InstalledPlugins({ updates }: { updates?: true }) {
24 const [sortAgain, setSortAgain] = useState(0)
25 useEffect(() => {
26 setList(list =>
27 - _.sortBy(list, x => (x.error ? 0 : x.started ? 1 : 2) + treatPluginName(x.repo?.split('/').reverse().join('/') || x.id).toLowerCase()))
27 + _.sortBy(list, x => (x.error ? 0 : x.started ? 1 : x.badApi ? 2 : 3) + treatPluginName(x.repo?.split('/').reverse().join('/') || x.id).toLowerCase()))
28 }, [list.length, sortAgain]);
29 const size = 'small'
30 const { pause, pauseButton } = usePauseButton("plugins", () => getSingleConfig(CFG.suspend_plugins).then(x => !x), {