Skip to content

Commit 283dc3d

Browse files
authored
Fix regression to deployments without backend (#2715)
1 parent e1c6412 commit 283dc3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commons/application/ApplicationWrapper.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const ApplicationWrapper: React.FC = () => {
2626
const [isApiHealthy, setIsApiHealthy] = useState(true);
2727

2828
useEffect(() => {
29-
getHealth().then(res => setIsApiHealthy(!!res));
29+
if (Constants.useBackend) {
30+
getHealth().then(res => setIsApiHealthy(!!res));
31+
}
3032
}, []);
3133

3234
const router = useMemo(() => {

0 commit comments

Comments
 (0)