From 2b8f60cafca89cac96cf9fc009bfc0c0d08fca4f Mon Sep 17 00:00:00 2001 From: hzh11012 <917944345@qq.com> Date: Wed, 11 Dec 2024 10:29:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20input-table=E7=A1=AE=E8=AE=A4=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E8=BF=9B=E8=A1=8C=E6=96=B0=E5=A2=9E=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E8=8B=A5=E5=8F=AA=E9=85=8D=E7=BD=AE=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=EF=BC=8C=E4=B8=8D=E9=85=8D=E7=BD=AE=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=8E=A5=E5=8F=A3=EF=BC=8C=E4=BC=9A=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A1=AE=E8=AE=A4=E6=97=B6=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis/src/renderers/Form/InputTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amis/src/renderers/Form/InputTable.tsx b/packages/amis/src/renderers/Form/InputTable.tsx index 46d2b5e0462..83bb6c19b4d 100644 --- a/packages/amis/src/renderers/Form/InputTable.tsx +++ b/packages/amis/src/renderers/Form/InputTable.tsx @@ -1040,7 +1040,7 @@ export default class FormTable< if (isNew && isEffectiveApi(addApi, createObject(data, item))) { remote = await env.fetcher(addApi, createObject(data, item)); apiMsg = (addApi as ApiObject)?.messages?.failed; - } else if (isEffectiveApi(updateApi, createObject(data, item))) { + } else if (!isNew && isEffectiveApi(updateApi, createObject(data, item))) { remote = await env.fetcher(updateApi, createObject(data, item)); apiMsg = (updateApi as ApiObject)?.messages?.failed; }