Skip to content

Commit 51c36ef

Browse files
authored
fix: connection error only shows in error state (#1838)
This ensures that an error of EOF does not get displayed in the disconnected state.
1 parent 4035974 commit 51c36ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/app/block/blockframe.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ const ConnStatusOverlay = React.memo(
339339
React.useEffect(() => {
340340
if (width) {
341341
const hasError = !util.isBlank(connStatus.error);
342-
const showError = hasError && width >= 250 && connStatus.status != "connecting";
342+
const showError = hasError && width >= 250 && connStatus.status == "error";
343343
setShowError(showError);
344344
}
345345
}, [width, connStatus, setShowError]);

0 commit comments

Comments
 (0)