Skip to content

Commit

Permalink
Fixed issue with update
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Jul 8, 2024
1 parent 79c41c5 commit 5500dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/piral-update/src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function checkForUpdates(ctx: GlobalStateContext, pilets: PiletEntries) {
const removed = currentPilets.filter((m) => !pilets.some((p) => p.name === m.name) && isNotBlocked(m));
const updated = pilets.filter((pilet) => {
if ('version' in pilet && isNotBlocked(pilet)) {
const version = currentPilets.find((m) => m.name)?.version;
const version = currentPilets.find((m) => m.name === pilet.name)?.version;
return !!version && version !== pilet.version;
}

Expand Down

0 comments on commit 5500dd2

Please sign in to comment.