Correctly update cache after updating an extension (#590)

After installing/uninstalling/updating an extension all other extension were removed from the list besides the updated extension

Regression introduced with 506e0aa0e3
This commit is contained in:
schroda
2024-02-01 22:58:01 +01:00
committed by GitHub
parent 7fb1dae9c4
commit bf3815e3bd

View File

@@ -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;