Oops, fix backend syntax error
Right, I keep forgetting that my local env isn't picky about this, but prod is
This commit is contained in:
parent
1dce12e792
commit
5f32d80022
1 changed files with 4 additions and 2 deletions
|
@ -160,7 +160,8 @@ const resolvers = {
|
||||||
const petState = await canonicalPetStateForBodyLoader.load({
|
const petState = await canonicalPetStateForBodyLoader.load({
|
||||||
bodyId: petType.bodyId,
|
bodyId: petType.bodyId,
|
||||||
preferredColorId,
|
preferredColorId,
|
||||||
fallbackColorId: FALLBACK_COLOR_IDS[species?.id] || "8",
|
fallbackColorId:
|
||||||
|
(species ? FALLBACK_COLOR_IDS[species.id] : null) || "8",
|
||||||
});
|
});
|
||||||
if (!petState) {
|
if (!petState) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -213,7 +214,8 @@ const resolvers = {
|
||||||
const petState = await canonicalPetStateForBodyLoader.load({
|
const petState = await canonicalPetStateForBodyLoader.load({
|
||||||
bodyId: id,
|
bodyId: id,
|
||||||
preferredColorId,
|
preferredColorId,
|
||||||
fallbackColorId: FALLBACK_COLOR_IDS[species?.id] || "8",
|
fallbackColorId:
|
||||||
|
(species ? FALLBACK_COLOR_IDS[species.id] : null) || "8",
|
||||||
});
|
});
|
||||||
if (!petState) {
|
if (!petState) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue