From 99e91a692bb93de6f5a515d5182badcd6bff36e2 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Thu, 19 Sep 2024 06:27:02 -0700 Subject: [PATCH] Fix lint issue --- src-web/components/core/Editor/twig/templateTags.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src-web/components/core/Editor/twig/templateTags.ts b/src-web/components/core/Editor/twig/templateTags.ts index f949fb6e..a24fa624 100644 --- a/src-web/components/core/Editor/twig/templateTags.ts +++ b/src-web/components/core/Editor/twig/templateTags.ts @@ -78,9 +78,9 @@ class TemplateTagWidget extends WidgetType { elt.title = this.option.invalid ? 'Not Found' : (this.option.value ?? ''); elt.setAttribute('data-tag-type', this.option.type); elt.textContent = - this.option.type === 'variable' - ? this.option.name - : `${this.option.name}(${this.option.args.length ? '…' : ''})`; + this.option.type === 'function' + ? `${this.option.name}(${this.option.args.length ? '…' : ''})` + : this.option.name; elt.addEventListener('click', this.#clickListenerCallback); return elt; }