update support to use petStateId -> id

This commit is contained in:
Emi Matchu 2020-08-27 21:43:21 -07:00
parent 10a6eff299
commit 7954c11c74

View file

@ -12,7 +12,6 @@ function PosePickerSupport({ speciesId, colorId }) {
query PosePickerSupport($speciesId: ID!, $colorId: ID!) { query PosePickerSupport($speciesId: ID!, $colorId: ID!) {
petAppearances(speciesId: $speciesId, colorId: $colorId) { petAppearances(speciesId: $speciesId, colorId: $colorId) {
id id
petStateId
bodyId bodyId
pose pose
...PetAppearanceForOutfitPreview ...PetAppearanceForOutfitPreview
@ -44,8 +43,8 @@ function PosePickerSupport({ speciesId, colorId }) {
<Box display="flex" justifyContent="flex-end"> <Box display="flex" justifyContent="flex-end">
<Select size="sm" width="auto"> <Select size="sm" width="auto">
{data.petAppearances.map((pa) => ( {data.petAppearances.map((pa) => (
<option key={pa.petStateId}> <option key={pa.id}>
{POSE_NAMES[pa.pose]} ({pa.petStateId}) {POSE_NAMES[pa.pose]} ({pa.id})
</option> </option>
))} ))}
</Select> </Select>