locate variable in editor

This commit is contained in:
codetypes committed 2025-03-20 13:47:18 +08:00
1 parent 35ca8285d0
commit f15fe82dc5
1 file changed
+1 -1
+1 -1
View File
@@ -106,7 +106,7 @@ const VarDefItem: FC<VarDefItemProps> = ({ name, onChange, onRemove, disabled, .
borderTop: "1px solid #3d506c",
borderBottom: "1px solid #3d506c",
}}
onClick={() => editing?.dispatch("clickVar", name)}
onClick={() => value.name && editing?.dispatch("clickVar", value.name)}
>
<AimOutlined />
<span style={{ marginLeft: 4 }}>{value?.count ?? 0}</span>