Skip to content

Commit

Permalink
fix:变量赋值导致面板挂掉
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm-lv authored and allenve committed Dec 12, 2024
1 parent 1b43c61 commit ddfeb82
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,16 @@ registerActionPanel('setValue', {
'__containerType'
],
descDetail: (info: any, context: any, props: any) => {
const variableManager = info?.variableManager;
const variableManager = props.manager?.variableManager;

return (
<div className="action-desc">
{/* 只要path字段存在就认为是应用变量赋值,无论是否有值 */}
{typeof info?.args?.path === 'string' && !info?.componentId ? (
<>
设置变量
<span className="variable-left variable-right">
{variableManager.getNameByPath(info.args.path)}
{variableManager?.getNameByPath(info.args.path)}
</span>
的数据
</>
Expand Down

0 comments on commit ddfeb82

Please sign in to comment.