Skip to content

Commit

Permalink
refactor: getSvg
Browse files Browse the repository at this point in the history
  • Loading branch information
amir78729 committed Feb 2, 2025
1 parent dde21b5 commit ef49d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/internals/components/DocIconGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class DocIconGrid extends LitElement {
this._focusTrapper?.activate();
};

private _getSvg(iconPaths: SVGPathInfo[]) {
private _getSvg(iconPaths?: SVGPathInfo[]) {
if (!iconPaths) return;
return html`
<svg
Expand Down Expand Up @@ -192,7 +192,7 @@ export class DocIconGrid extends LitElement {
class="tapsi-icon-wrapper"
id="icon-wrapper"
>
${this._selectedIcon && this._getSvg(this._selectedIcon?.paths)}
${this._getSvg(this._selectedIcon?.paths)}
</div>
</main>
</div> `;
Expand Down

0 comments on commit ef49d49

Please sign in to comment.