Skip to content

Commit

Permalink
Require _addLayer helper function to always return an object
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed May 30, 2024
1 parent 67c677e commit 6d923c7
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 @@ -1776,7 +1776,7 @@ function _addLayer(
params: JCanvasObject,
args?: Partial<JCanvasObject>,
method?: (args: JCanvasObject) => JQuery<HTMLElement>
): JCanvasObject | null {
): JCanvasObject {
const layer: JCanvasObject = params._layer ? (args as JCanvasLayer) : params;

// Store arguments object for later use
Expand Down

0 comments on commit 6d923c7

Please sign in to comment.