From d694bc844a1ea09ffd6a48637fc9ea970df25071 Mon Sep 17 00:00:00 2001 From: memelotsqui Date: Sun, 29 Oct 2023 22:51:51 -0600 Subject: [PATCH] Fix returning to trait selectiong reloading the character --- src/components/JsonAttributes.jsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/components/JsonAttributes.jsx b/src/components/JsonAttributes.jsx index 1359ccc5..09513e57 100644 --- a/src/components/JsonAttributes.jsx +++ b/src/components/JsonAttributes.jsx @@ -9,12 +9,6 @@ export default function JsonAttributes({jsonSelectionArray}){ } = useContext(SceneContext); const [index, setIndex] = useState(0); - useEffect(() => { - if (jsonSelectionArray?.length >0) - setSelectedOptions(jsonSelectionArray[0].options) - setIndex(0); - }, [jsonSelectionArray]) - const nextJson = async () => { if (index >= jsonSelectionArray.length -1){ setSelectedOptions(jsonSelectionArray[0].options)