Skip to content

Commit b66442c

Browse files
committed
fix: fix null check for output in CSS rule generation
1 parent c589a94 commit b66442c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/generator/css.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class Rules {
218218
: this.compose_argument(n, coords, extra, arg, contextVariable, selector);
219219
});
220220
let output = this.apply_func(fn, coords, args, fname, contextVariable);
221-
if (output.gf) {
221+
if (output && output.gf) {
222222
this.add_rule(':gf:', output.value);
223223
}
224224
return get_value(output);
@@ -377,7 +377,7 @@ class Rules {
377377
if (output.extra) {
378378
extra = output.extra;
379379
}
380-
if (output.gf) {
380+
if (output && output.gf) {
381381
this.add_rule(':gf:', output.value);
382382
}
383383
}

0 commit comments

Comments
 (0)