Tie backup loading state to initial data flag
This commit is contained in:
parent
4e9572d5e3
commit
26442beca1
1 changed files with 6 additions and 3 deletions
|
|
@ -50,7 +50,7 @@ interface DateGroup {
|
|||
|
||||
const UnifiedBackups: Component = () => {
|
||||
const navigate = useNavigate();
|
||||
const { state, connected } = useWebSocket();
|
||||
const { state, connected, initialDataReceived } = useWebSocket();
|
||||
const pveBackupsState = createMemo(() => state.backups?.pve ?? state.pveBackups);
|
||||
const pbsBackupsState = createMemo(() => state.backups?.pbs ?? state.pbsBackups);
|
||||
const pmgBackupsState = createMemo(() => state.backups?.pmg ?? state.pmgBackups);
|
||||
|
|
@ -178,8 +178,11 @@ const UnifiedBackups: Component = () => {
|
|||
if (!connected()) {
|
||||
return true;
|
||||
}
|
||||
const lastUpdate = state.lastUpdate;
|
||||
return !lastUpdate;
|
||||
if (!initialDataReceived()) {
|
||||
return true;
|
||||
}
|
||||
const hasLastUpdate = Boolean(state.lastUpdate);
|
||||
return !hasLastUpdate;
|
||||
});
|
||||
|
||||
// Normalize all backup data into unified format
|
||||
|
|
|
|||
Loading…
Reference in a new issue