mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-22 23:09:38 -04:00
If an addon successfully returns, clear the warning type
This commit is contained in:
@@ -325,10 +325,6 @@ export class CurseAddonProvider extends AddonProvider {
|
||||
return response;
|
||||
}
|
||||
|
||||
private sendRequest<T>(action: () => Promise<T>): Promise<T> {
|
||||
return action.call(this);
|
||||
}
|
||||
|
||||
public async getAll(installation: WowInstallation, addonIds: string[]): Promise<GetAllResult> {
|
||||
if (!addonIds.length) {
|
||||
return {
|
||||
|
||||
@@ -1054,6 +1054,7 @@ export class AddonService {
|
||||
addon.summary = result.summary;
|
||||
addon.thumbnailUrl = result.thumbnailUrl;
|
||||
addon.latestChangelog = latestFile?.changelog || addon.latestChangelog;
|
||||
addon.warningType = undefined;
|
||||
|
||||
// If the release ID hasn't changed we don't really need to update the whole record
|
||||
if (!!latestFile?.externalId && latestFile.externalId === addon.externalLatestReleaseId) {
|
||||
|
||||
Reference in New Issue
Block a user