From 4f6bf663dd1bb68228d607d91ed58527b4fb6033 Mon Sep 17 00:00:00 2001 From: Nuwan Date: Mon, 9 Sep 2024 15:26:56 +0530 Subject: [PATCH] fix for instruments and genres initial loading in profile edit form --- jam-ui/src/components/page/JKEditProfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jam-ui/src/components/page/JKEditProfile.js b/jam-ui/src/components/page/JKEditProfile.js index d5a24059f..bd326e4b8 100644 --- a/jam-ui/src/components/page/JKEditProfile.js +++ b/jam-ui/src/components/page/JKEditProfile.js @@ -64,7 +64,7 @@ function JKEditProfile() { updateFormData(userProfile); }, [userProfile]); - useEffect(() => { + useLayoutEffect(() => { fetchInstruments(); fetchGenres(); fetchCountries();