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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user