fix: varliableItem value 空选择问题

This commit is contained in:
yupeng12 2024-06-21 14:54:37 +08:00
parent 7ac417ba49
commit f0b32de88f
2 changed files with 3 additions and 2 deletions

View File

@ -100,7 +100,8 @@
&-buttonWrapper {
height: auto;
}
&-button {
&-button,
&-buttonWrapper-button {
height: 100%;
background-color: #f7f7f9;
padding: 4px 8px;

View File

@ -286,7 +286,7 @@ function VariableList(props: VariableListProps) {
}
function handleChange(item: any) {
if (item.isMember || item.memberDepth !== undefined) {
if (item.isMember || item.memberDepth !== undefined || !item.value) {
return;
}
onSelect?.(item);