Merge pull request #573 from smartxworks/fix/windlike-dev

fix: fix selecting component would change the properties' values issue
This commit is contained in:
tanbowensg 2022-08-17 10:30:42 +08:00 committed by GitHub
commit bd451fec39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ export const ComponentForm: React.FC<Props> = observer(props => {
<FormSection
style={{ position: 'relative', zIndex: sections.length - i }}
title={section.title}
key={section.title}
key={`${section.title}-${selectedComponentId}`}
>
{section.node}
</FormSection>