pull/13083/head
Dominic Gannaway 2 years ago
parent b888dce79e
commit 8ace4d02cb

@ -31,7 +31,7 @@ export function RenderTag(node, context) {
if (node.metadata.dynamic) {
// If we have a chain expression then ensure a nullish snippet function gets turned into an empty one
if (b.literal(node.expression.type === 'ChainExpression')) {
if (node.expression.type === 'ChainExpression') {
snippet_function = b.logical('??', snippet_function, b.id('$.empty_snippet'));
}

@ -8,6 +8,6 @@ export default test({
assert.throws(() => {
btn?.click();
flushSync();
}, /invalid_snippet/);
}, /snippet is not a function/);
}
});

Loading…
Cancel
Save