visuddhinanda hace 2 años
padre
commit
99e4be0f9b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      dashboard/src/components/general/LangSelect.tsx

+ 3 - 1
dashboard/src/components/general/LangSelect.tsx

@@ -28,12 +28,14 @@ interface IWidget {
   label?: string;
   disabled?: boolean;
   required?: boolean;
+  name?: string;
 }
 const LangSelectWidget = ({
   width,
   label,
   disabled = false,
   required = true,
+  name = "lang",
 }: IWidget) => {
   const intl = useIntl();
 
@@ -59,7 +61,7 @@ const LangSelectWidget = ({
     <ProFormSelect
       options={langOptions}
       width={width}
-      name="lang"
+      name={name}
       showSearch
       debounceTime={300}
       allowClear={false}