Skip to content

Commit

Permalink
Correctly update cache after updating an extension (#590)
Browse files Browse the repository at this point in the history
After installing/uninstalling/updating an extension all other extension were removed from the list besides the updated extension

Regression introduced with 506e0aa
  • Loading branch information
schroda authored Feb 1, 2024
1 parent 7fb1dae commit bf3815e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/requests/RequestManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1100,8 +1100,12 @@ export class RequestManager {
...cachedExtensions.data.fetchExtensions,
extensions: cachedExtensions.data.fetchExtensions.extensions
.filter((extension) => {
if (!isObsolete) {
return true;
}

const isUpdatedExtension = id === extension.pkgName;
return isUpdatedExtension && !isObsolete;
return !isUpdatedExtension;
})
.map((extension) => {
const isUpdatedExtension = id === extension.pkgName;
Expand Down

0 comments on commit bf3815e

Please sign in to comment.