Skip to content

Commit

Permalink
fix(extension): 修复 BPMNAdapter 导入含有边的 xml 报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyang authored and boyongjiong committed Aug 27, 2024
1 parent fa438f6 commit e0bcef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension/src/bpmn-elements-adapter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ function getLfEdges(value: any, bpmnEdges: any) {

function getEdgeConfig(edgeValue: any, processValue: any) {
let text
const textVal = `${processValue['-name']}`
const textVal = processValue['-name'] ? `${processValue['-name']}` : ''
if (textVal) {
const textBounds = edgeValue['bpmndi:BPMNLabel']['dc:Bounds']
// 如果边文本换行,则其偏移量应该是最长一行的位置
Expand Down

0 comments on commit e0bcef3

Please sign in to comment.