Skip to content

Commit

Permalink
fix: borderLineDash set null occor error
Browse files Browse the repository at this point in the history
  • Loading branch information
fangsmile committed May 17, 2024
1 parent 349320b commit fd344a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ export class DashGroupBeforeRenderContribution implements IGroupRenderContributi
stroke &&
Array.isArray(lineDash) &&
lineDash.length &&
lineDash[0].length &&
lineDash[0]?.length &&
!Array.isArray(strokeArrayColor) &&
!Array.isArray(strokeArrayWidth)
) {
Expand Down Expand Up @@ -497,7 +497,7 @@ export class DashGroupAfterRenderContribution implements IGroupRenderContributio

if (
!stroke ||
!(Array.isArray(lineDash) && lineDash.length && lineDash[0].length) ||
!(Array.isArray(lineDash) && lineDash.length && lineDash[0]?.length) ||
Array.isArray(strokeArrayColor) ||
Array.isArray(strokeArrayWidth)
) {
Expand Down

0 comments on commit fd344a9

Please sign in to comment.