diff --git a/packages/graphics/src/Graphics.js b/packages/graphics/src/Graphics.js index de4dd3d..c987b63 100644 --- a/packages/graphics/src/Graphics.js +++ b/packages/graphics/src/Graphics.js @@ -1047,9 +1047,9 @@ // ok so close path assumes next one is a hole! const currentPath = this.currentPath; - if (currentPath && currentPath.shape) + if (currentPath && currentPath.close) { - currentPath.shape.close(); + currentPath.close(); } return this;