SkyeYoung commented on code in PR #3008:
URL: https://github.com/apache/apisix-dashboard/pull/3008#discussion_r2068316623


##########
src/components/form-slice/FormPartUpstream/index.tsx:
##########
@@ -174,37 +182,40 @@ export const FormSectionTimeout = () => {
 export const FormSectionKeepAlive = () => {
   const { t } = useTranslation();
   const { control } = useFormContext<FormPartUpstreamType>();
+  const np = useNamePrefix();
   return (
     <FormSection legend={t('form.upstream.keepalivePool.title')}>
       <FormItemNumberInput
         control={control}
-        name="keepalive_pool.size"
+        name={np('keepalive_pool.size')}
         label={t('form.upstream.keepalivePool.size')}
       />
       <FormItemNumberInput
         control={control}
-        name="keepalive_pool.idle_timeout"
+        name={np('keepalive_pool.idle_timeout')}
         label={t('form.upstream.keepalivePool.idleTimeout')}
         suffix="s"
       />
       <FormItemNumberInput
         control={control}
-        name="keepalive_pool.requests"
+        name={np('keepalive_pool.requests')}
         label={t('form.upstream.keepalivePool.requests')}
         allowDecimal={false}
       />
     </FormSection>
   );
 };
+
 export const FormPartUpstream = () => {
   const { t } = useTranslation();
+  const np = useNamePrefix();
   return (
     <>
       <FormPartBasic />
       <FormSection legend={t('form.upstream.findUpstreamFrom')}>
         <FormSection legend={t('form.upstream.nodes.title')}>
           <FormItemNodes
-            name="nodes"
+            name={np('nodes')}

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to