From c4396e97e1d47a54bf5cacb1806ed1640d9c92ae Mon Sep 17 00:00:00 2001 From: "Au Chen Xi, Gabriel" Date: Mon, 13 Nov 2023 19:18:14 +0800 Subject: [PATCH] update to use temp lang id --- src/pages/maintainer/environments.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/maintainer/environments.tsx b/src/pages/maintainer/environments.tsx index 51daef8..05d3d03 100644 --- a/src/pages/maintainer/environments.tsx +++ b/src/pages/maintainer/environments.tsx @@ -171,7 +171,7 @@ const CreateEnvironment = () => { useEffect(() => { if (useQuestionObject.environment - && useQuestionObject.environment.languageId === formData.languageId) { + && useQuestionObject.environment.languageId === tempLangID) { setFormData({ ...useQuestionObject.environment, });