Skip to content

Commit

Permalink
fix(chord diagram): fix roughjs renderer error when not adding classes
Browse files Browse the repository at this point in the history
  • Loading branch information
omnibrain committed Oct 10, 2021
1 parent 5d0eb31 commit b069dd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer/roughjs/roughjs-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,10 @@ export class RoughJsRenderer extends Renderer {
}

private static toClassArray(classes?: string | string[]): string[] {
if (!classes) {
return []
}

return Renderer.toClassName(classes).split(' ')
}
}
Expand Down

0 comments on commit b069dd8

Please sign in to comment.