Skip to content

Commit

Permalink
Have getLayerGroup() return undefined for non-canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed Jun 4, 2024
1 parent db72dea commit 3216159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jcanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ $.fn.getLayerGroup = function getLayerGroup(groupId) {
if ($canvases.length !== 0) {
const canvas = $canvases[0];
if (!_isCanvas(canvas)) {
return [];
return undefined;
}

if (idType === "array") {
Expand Down

0 comments on commit 3216159

Please sign in to comment.