Skip to content

Commit

Permalink
fix(hiccup-canvas): add null check for __skip attrib
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jan 19, 2023
1 parent bcff691 commit 416b7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hiccup-canvas/src/draw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const draw = (
return;
}
const origAttribs = shape[1];
if (origAttribs.__skip) return;
if (origAttribs?.__skip) return;
const state = __mergeState(ctx, pstate, origAttribs);
const attribs = state ? state.attribs : pstate.attribs;
switch (shape[0]) {
Expand Down

0 comments on commit 416b7bb

Please sign in to comment.