only warn on update if breakages (#3097)

This commit is contained in:
Matt Hill
2026-01-15 13:33:42 -07:00
committed by GitHub
parent d3048c59e8
commit db344386ef

View File

@@ -14,7 +14,6 @@ import {
Exver,
ExverPipesModule,
i18nPipe,
isEmptyObject,
LoadingService,
sameUrl,
} from '@start9labs/shared'
@@ -184,10 +183,7 @@ export class MarketplaceControlsComponent {
const packages = await getAllPackages(this.patch)
const breakages = dryUpdate({ id, version }, packages, this.exver)
if (
isEmptyObject(breakages) ||
(await this.alerts.alertBreakages(breakages))
) {
if (!breakages.length || (await this.alerts.alertBreakages(breakages))) {
this.installOrUpload(url)
}
}