Skip to content

Commit

Permalink
fix: Fix updating same name coutners
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Nov 12, 2024
1 parent e7158b2 commit 229894a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/server/assets/homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ window.onload = async () => {
for (let i = 0; i < installed.length; i++) {
const counter = installed[i];

const find = json.find(r => r.name == counter.attributes.getNamedItem('n')?.value);
const find = json.find(r => r.name == counter.attributes.getNamedItem('n')?.value && r.author == counter.attributes.getNamedItem('a')?.value);
if (!find) continue;


Expand Down
2 changes: 1 addition & 1 deletion packages/server/utils/counters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function rebuildJSON({
${downloadBtn}
</div>`;

const localButtons = `<div class="calu buttons-group flexer indent-left" n="${item.name}" v="${item.version}">
const localButtons = `<div class="calu buttons-group flexer indent-left" n="${item.name}" a="${item.author}" v="${item.version}">
${settingsBuilderBtn}
${settingsBtn}
<button class="button open-button flexer" n="${item.folderName}"><span>Open Folder</span></button>
Expand Down

0 comments on commit 229894a

Please sign in to comment.