Fix unavailable server handling

This commit is contained in:
Bill Thornton
2025-04-29 17:16:59 -04:00
parent 96ba9bf8be
commit 12acfb32e3
4 changed files with 29 additions and 11 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ const ConnectionRequired: FunctionComponent<ConnectionRequiredProps> = ({
console.debug('[ConnectionRequired] connection state', firstConnection?.State);
ServerConnections.firstConnection = true;
if (firstConnection?.State === ConnectionState.ServerUpdateNeeded) {
if ([ ConnectionState.ServerUpdateNeeded, ConnectionState.Unavailable ].includes(firstConnection?.State)) {
setErrorState(firstConnection.State);
} else if (level === AccessLevel.Wizard) {
handleWizard(firstConnection)