From 5cab2c87c4b2463cb4d87fe24def1b8d243357a5 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 25 May 2021 17:02:29 -0700 Subject: [PATCH] Fix UC outfit images MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Oops, I wasn't requesting `bodyId` for item layers, so the check for `layer.bodyId !== "0"` was always true—because it was always `undefined`, even when it should have been `"0"`. This wasn't an issue on the client, because the client _does_ request `bodyId` for caching item appearances between pets of the same body, and I didn't realize that it needs to be part of this fragment too! --- src/shared/getVisibleLayers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/getVisibleLayers.js b/src/shared/getVisibleLayers.js index 333eba9..7f99f89 100644 --- a/src/shared/getVisibleLayers.js +++ b/src/shared/getVisibleLayers.js @@ -99,6 +99,7 @@ export const itemAppearanceFragmentForGetVisibleLayers = gql` id layers { id + bodyId zone { id depth