mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
Support default sort correctly
This commit is contained in:
parent
7012549ea2
commit
63b0dc5278
@ -16,7 +16,7 @@ export default function Cameras() {
|
||||
<ActivityIndicator />
|
||||
) : (
|
||||
<div className="grid grid-cols-1 3xl:grid-cols-3 md:grid-cols-2 gap-4">
|
||||
{Object.entries(config.cameras).sort(([aCam, aConf], [bCam, bConf]) => aConf.gui.order > bConf.gui.order ? 1 : -1).map(([camera, conf]) => (
|
||||
{Object.entries(config.cameras).sort(([aCam, aConf], [bCam, bConf]) => aConf.gui.order == bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1)).map(([camera, conf]) => (
|
||||
<Camera name={camera} conf={conf} />
|
||||
))}
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user