fix: linkage rule title can not set empty (#1688)

This commit is contained in:
katherinehhh 2023-04-12 12:25:35 +08:00 committed by GitHub
parent 1fdc456c0b
commit 2ed3565d43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,8 @@ const LinkageRulesTitle = (props) => {
const value = array?.field?.value[index];
return (
<Input.TextArea
value={value.title || t('Linkage rule')}
value={value.title}
defaultValue={t('Linkage rule')}
onChange={(ev) => {
ev.stopPropagation();
array.field.value.splice(index, 1, { ...value, title: ev.target.value });