From aa26eab2d27344533bf862d57ec5069c2ca83642 Mon Sep 17 00:00:00 2001 From: chenfan02 Date: Mon, 28 Oct 2024 21:16:06 +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)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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}