Disable PosePicker while saved outfit is loading
Oops, if you try to show PosePicker before we have a species/color ready, it sends a bad GraphQL request. No visible user impact, just an unnecessary network call and an error in the console! This happens when you're loading an outfit by ID. Here, we hide PosePicker if there's no species/color ready yet. This stops the extra request from firing!
This commit is contained in:
parent
c7929b29a5
commit
11767828cf
1 changed files with 13 additions and 11 deletions
|
@ -189,6 +189,7 @@ function OutfitControls({
|
|||
/>
|
||||
</DarkMode>
|
||||
</Box>
|
||||
{outfitState.speciesId && outfitState.colorId && (
|
||||
<Flex flex="1 1 0" align="center" pl="4">
|
||||
<PosePicker
|
||||
speciesId={outfitState.speciesId}
|
||||
|
@ -200,6 +201,7 @@ function OutfitControls({
|
|||
onUnlockFocus={onUnlockFocus}
|
||||
/>
|
||||
</Flex>
|
||||
)}
|
||||
</Flex>
|
||||
</Box>
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue