fix: clear plugin list container before rendering to prevent duplicate cards
This commit is contained in:
parent
f6c9881926
commit
f44222bf61
1 changed files with 2 additions and 0 deletions
|
|
@ -63,6 +63,8 @@ function renderPluginsList() {
|
|||
const emptyEl = document.getElementById('pluginsEmpty');
|
||||
|
||||
if (!listEl) return;
|
||||
|
||||
listEl.innerHTML = '';
|
||||
|
||||
if (pluginsList.length === 0) {
|
||||
if (emptyEl) emptyEl.style.display = 'flex';
|
||||
|
|
|
|||
Loading…
Reference in a new issue