mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Build fixes
This commit is contained in:
parent
83f50a7318
commit
337665f58e
@ -23,7 +23,7 @@ export default function Sidebar() {
|
|||||||
<Separator />
|
<Separator />
|
||||||
{Object.entries(cameras)
|
{Object.entries(cameras)
|
||||||
.filter(([_, conf]) => conf.gui.show)
|
.filter(([_, conf]) => conf.gui.show)
|
||||||
.sort(([_, aConf], [_, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
|
.sort(([_, aConf], [__, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
|
||||||
.map(([camera]) => (
|
.map(([camera]) => (
|
||||||
<Destination key={camera} href={`/cameras/${camera}`} text={camera} />
|
<Destination key={camera} href={`/cameras/${camera}`} text={camera} />
|
||||||
))}
|
))}
|
||||||
@ -39,7 +39,7 @@ export default function Sidebar() {
|
|||||||
<Separator />
|
<Separator />
|
||||||
{Object.entries(cameras)
|
{Object.entries(cameras)
|
||||||
.filter(([_, conf]) => conf.gui.show)
|
.filter(([_, conf]) => conf.gui.show)
|
||||||
.sort(([_, aConf], [_, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
|
.sort(([_, aConf], [__, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
|
||||||
.map(([camera, conf]) => {
|
.map(([camera, conf]) => {
|
||||||
if (conf.record.enabled) {
|
if (conf.record.enabled) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -18,7 +18,7 @@ export default function Cameras() {
|
|||||||
<div className="grid grid-cols-1 3xl:grid-cols-3 md:grid-cols-2 gap-4 p-2 px-4">
|
<div className="grid grid-cols-1 3xl:grid-cols-3 md:grid-cols-2 gap-4 p-2 px-4">
|
||||||
{Object.entries(config.cameras)
|
{Object.entries(config.cameras)
|
||||||
.filter(([_, conf]) => conf.gui.show)
|
.filter(([_, conf]) => conf.gui.show)
|
||||||
.sort(([_, aConf], [_, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
|
.sort(([_, aConf], [__, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
|
||||||
.map(([camera, conf]) => (
|
.map(([camera, conf]) => (
|
||||||
<Camera key={camera} name={camera} conf={conf} />
|
<Camera key={camera} name={camera} conf={conf} />
|
||||||
))}
|
))}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user