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