From 453d6783c45a01bf15b5e11f4d53173f0879553d Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Thu, 1 Feb 2024 06:00:39 -0800 Subject: [PATCH] Move the style and state params earlier in the outfit URL Idk I just think it's nice for them to be next to pose and such! --- .../wardrobe-2020/WardrobePage/useOutfitState.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/javascript/wardrobe-2020/WardrobePage/useOutfitState.js b/app/javascript/wardrobe-2020/WardrobePage/useOutfitState.js index 683b9063..0882dd80 100644 --- a/app/javascript/wardrobe-2020/WardrobePage/useOutfitState.js +++ b/app/javascript/wardrobe-2020/WardrobePage/useOutfitState.js @@ -704,12 +704,6 @@ function buildOutfitQueryString(outfitState) { color: colorId || "", pose: pose || "", }); - for (const itemId of wornItemIds) { - params.append("objects[]", itemId); - } - for (const itemId of closetedItemIds) { - params.append("closet[]", itemId); - } if (altStyleId != null) { params.append("style", altStyleId); } @@ -718,6 +712,12 @@ function buildOutfitQueryString(outfitState) { // refers to "PetState", the database table name for pet appearances. params.append("state", appearanceId); } + for (const itemId of wornItemIds) { + params.append("objects[]", itemId); + } + for (const itemId of closetedItemIds) { + params.append("closet[]", itemId); + } return params.toString(); }