mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Fix preload
This commit is contained in:
parent
2665a05292
commit
7e0e1b696a
@ -18,6 +18,10 @@ export default function Storage() {
|
||||
|
||||
const { service } = stats || initialStats || emptyObject;
|
||||
|
||||
if (!service || !storage) {
|
||||
return <ActivityIndicator />;
|
||||
}
|
||||
|
||||
let storage_usage;
|
||||
if (
|
||||
service &&
|
||||
@ -53,11 +57,6 @@ export default function Storage() {
|
||||
<div className="space-y-4 p-2 px-4">
|
||||
<Heading>Storage</Heading>
|
||||
|
||||
{!service || !storage ? (
|
||||
<div>
|
||||
<ActivityIndicator />
|
||||
</div>
|
||||
) : (
|
||||
<Fragment>
|
||||
<Heading size="lg">Overview</Heading>
|
||||
<div data-testid="detectors" className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
@ -131,7 +130,6 @@ export default function Storage() {
|
||||
))}
|
||||
</div>
|
||||
</Fragment>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user