Skip to content

Commit

Permalink
fix: 画布交互问题修复 --ignore
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 28176
  • Loading branch information
ywywZhou committed Dec 31, 2024
1 parent 7031a10 commit bc8a902
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/ProcessCanvas/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@
const branchInfo = this.getBranchConditions(cell.source.cell) || {};
// 增加分支网关 label
if (branchInfo && Object.keys(branchInfo).length > 0) {
const conditionInfo = cell.data?.conditionInfo || branchInfo[cell.id] || {};
const conditionInfo = branchInfo[cell.id] || {};
if (!Object.keys(conditionInfo).length) return;
const textDom = document.createElement('span');
textDom.innerText = conditionInfo.name;
Expand Down
1 change: 1 addition & 0 deletions frontend/src/utils/graphJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export const graphToJson = (canvasData) => {
padding: 1,
},
},
data: {},
});
return acc;
}, []) || [];
Expand Down

0 comments on commit bc8a902

Please sign in to comment.