mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 00:25:23 +03:00
wait until default view is loaded
This commit is contained in:
parent
1eb63ba7a4
commit
3c99c6bf1b
@ -36,7 +36,7 @@ export default function Explore() {
|
|||||||
|
|
||||||
// default layout
|
// default layout
|
||||||
|
|
||||||
const [defaultView, setDefaultView] = usePersistence(
|
const [defaultView, setDefaultView, defaultViewLoaded] = usePersistence(
|
||||||
"exploreDefaultView",
|
"exploreDefaultView",
|
||||||
"summary",
|
"summary",
|
||||||
);
|
);
|
||||||
@ -274,12 +274,13 @@ export default function Explore() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (
|
if (
|
||||||
config?.semantic_search.enabled &&
|
!defaultViewLoaded ||
|
||||||
|
(config?.semantic_search.enabled &&
|
||||||
(!reindexState ||
|
(!reindexState ||
|
||||||
!textModelState ||
|
!textModelState ||
|
||||||
!textTokenizerState ||
|
!textTokenizerState ||
|
||||||
!visionModelState ||
|
!visionModelState ||
|
||||||
!visionFeatureExtractorState)
|
!visionFeatureExtractorState))
|
||||||
) {
|
) {
|
||||||
return (
|
return (
|
||||||
<ActivityIndicator className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2" />
|
<ActivityIndicator className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user