improving game loading
This commit is contained in:
parent
573441da9c
commit
cef74e0614
|
|
@ -46,11 +46,16 @@ export default function GameContainer({ gameId }) {
|
|||
setIsDragging(false);
|
||||
}
|
||||
|
||||
if (!contextGameDatas) return <Loading />;
|
||||
if (
|
||||
!contextGameDatas ||
|
||||
!contextGameDatas.gameBlockDatas.attrs.coverUrl ||
|
||||
!contextGameDatas.gameBlockDatas.innerBlocks
|
||||
)
|
||||
return <Loading />;
|
||||
|
||||
const gameBackgroundUrl = contextGameDatas.gameBlockDatas.attrs.coverUrl;
|
||||
const blocks = contextGameDatas.gameBlockDatas.innerBlocks;
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* <ExtraControls /> */}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user