Skip to content

Commit

Permalink
Merge pull request #11284 from hsm-lv/fix-setvalue
Browse files Browse the repository at this point in the history
fix:变量赋值导致面板挂掉
  • Loading branch information
hsm-lv authored Nov 28, 2024
2 parents 04c1e07 + b1ee03e commit 767017e
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 767017e

Please sign in to comment.