shows loading screen if devicePageData has not loaded in yet
This commit is contained in:
parent
61b93579cb
commit
f72f5cd106
1 changed files with 7 additions and 0 deletions
|
|
@ -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"}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue