Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: use SelectControlled for controlled select in training question form (#1172)

Carbon Agentd6b4081018ee
diff --git a/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx b/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx
index a1da5600e0..4ca8023312 100644
--- a/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx
+++ b/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx
@@ -4,7 +4,6 @@ import {
Input,
MultiSelect,
Number,
- Select,
SelectControlled,
Submit,
useFormContext,
@@ -775,7 +774,7 @@ function OptionsWithCorrectAnswers({
<ArrayInput name="options" label={t`Options`} />
{type === "MultipleChoice" && (
- <Select
+ <SelectControlled
name="correctAnswers"
label={t`Correct Answer`}
options={answerOptions}