From 887d860f967b185781bcf8b84bee41295c37e920 Mon Sep 17 00:00:00 2001 From: Franck Chan Date: Wed, 30 Oct 2024 09:49:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E7=BB=84=E4=BB=B6=E9=80=89=E4=B8=AD=E5=80=BC?= =?UTF-8?q?=E5=9B=9E=E4=BC=A0=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98(#11126)=20(#11127)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: chenfan02 --- packages/amis-editor/src/renderer/DataBindingControl.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/amis-editor/src/renderer/DataBindingControl.tsx b/packages/amis-editor/src/renderer/DataBindingControl.tsx index 18a64d4a742..a37b23cfde1 100644 --- a/packages/amis-editor/src/renderer/DataBindingControl.tsx +++ b/packages/amis-editor/src/renderer/DataBindingControl.tsx @@ -130,7 +130,10 @@ export class DataBindingControl extends React.Component< return render('content', schema!, { onSelect: onChange, - value: value ? value.value : result + value: + value && typeof value === 'object' + ? value?.selected?.value ?? value?.value + : result }); }} value={result}