From f19853b0d6ee950756b814abb43ff94f49c976ff Mon Sep 17 00:00:00 2001 From: Michael Stewart Date: Mon, 19 Feb 2024 13:47:22 -0500 Subject: [PATCH] syncup --- components/mergingScore.js | 2 +- components/student/create/theoretical.js | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/components/mergingScore.js b/components/mergingScore.js index d57a943..a17fb06 100644 --- a/components/mergingScore.js +++ b/components/mergingScore.js @@ -46,7 +46,7 @@ function MergingScore({ createdEmbed.loadJSON(mergedScore); }); } - }, [height, scores]); + }, [scores, height, instrumentName, giveJSON]); return
} diff --git a/components/student/create/theoretical.js b/components/student/create/theoretical.js index f359e89..1a9ae36 100644 --- a/components/student/create/theoretical.js +++ b/components/student/create/theoretical.js @@ -166,9 +166,13 @@ export default function CreativityActivity() { // the child component has finished merging the array of "subscores" into the single "score" - const onMerged = useCallback(mergedData=> { + // const onMerged = useCallback(mergedData=> { + // setTotalScoreJSON(mergedData); + // }, [setTotalScoreJSON]) + + function onMerged (mergedData) { setTotalScoreJSON(mergedData); - }, [setTotalScoreJSON]) + }