Skip to content

Commit

Permalink
[#63216] don't show templates button when no template list is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Trzcin committed Jul 29, 2024
1 parent 1febb73 commit b93d61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Topbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export const EditorTopbar = ({ alert, users, text, setMode, templatelist, button
<//>
`,
)}
${buttons.find((b) => b.id === "template-manager") && html`<${TemplateManager} text=${text} templatelist=${templatelist} />`}
${buttons.find((b) => b.id === "template-manager") && templatelist && html`<${TemplateManager} text=${text} templatelist=${templatelist} />`}
${alert && html`<${Alert}> ${alert} <//>`}
<${Title} dangerouslySetInnerHTML=${{ __html: titleHtml }} />
<//>
Expand Down

0 comments on commit b93d61d

Please sign in to comment.