shows loading screen if devicePageData has not loaded in yet

This commit is contained in:
Carter 2025-05-13 12:02:51 -06:00
parent 61b93579cb
commit f72f5cd106

View file

@ -14,6 +14,7 @@ import { useGlobalState } from "providers";
import DeviceActions from "device/DeviceActions";
import { cloneDeep } from "lodash";
import { FindAvailablePositions } from "pbHelpers/DeviceAvailability";
import LoadingScreen from "app/LoadingScreen";
interface TabPanelProps {
children?: React.ReactNode;
@ -179,6 +180,12 @@ export default function DeviceSupport() {
});
};
if (!devicePageData) {
return (
<LoadingScreen message="Getting device data"/>
)
}
return (
<PageContainer>
<Grid container justifyContent={"space-between"}>