Skip to content

Commit 7a3da13

Browse files
committed
fix: isSvg reference error in nest modal
1 parent 81c1eb8 commit 7a3da13

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

public/js/admin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,9 +2433,9 @@ function showRenameNestModal(nestId, currentName, currentLogo, currentDescriptio
24332433
<button type="button" class="${initialType === 'svg' ? 'active' : ''}" data-type="svg">Choose SVG</button>
24342434
</div>
24352435
<div id="nest-logo-url-section" style="display:${initialType === 'url' ? 'block' : 'none'}">
2436-
<input type="text" id="modal-edit-nest-logo" value="${isSvg ? '' : (currentLogo || '')}" placeholder="https://example.com/logo.png" style="width:100%" />
2437-
<div id="modal-nest-logo-preview" style="margin-top:8px;${currentLogo && !isSvg ? '' : 'display:none'}">
2438-
<img src="${isSvg ? '' : (currentLogo || '')}" alt="" style="max-width:64px;max-height:64px;object-fit:contain;border-radius:4px;border:1px solid var(--border)" />
2436+
<input type="text" id="modal-edit-nest-logo" value="${isIcon ? '' : (currentLogo || '')}" placeholder="https://example.com/logo.png" style="width:100%" />
2437+
<div id="modal-nest-logo-preview" style="margin-top:8px;${currentLogo && !isIcon ? '' : 'display:none'}">
2438+
<img src="${isIcon ? '' : (currentLogo || '')}" alt="" style="max-width:64px;max-height:64px;object-fit:contain;border-radius:4px;border:1px solid var(--border)" />
24392439
</div>
24402440
</div>
24412441
<div id="nest-logo-svg-section" style="display:${initialType === 'svg' ? 'block' : 'none'}">

0 commit comments

Comments
 (0)