fix bug with dep error exists attr

This commit is contained in:
Matt Hill
2025-12-20 20:10:22 -07:00
parent 4f09d7e302
commit 940feebff7
2 changed files with 8 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ import {
FilterPackagesPipe,
FilterPackagesPipeModule,
} from '@start9labs/marketplace'
import { defaultRegistries, i18nPipe } from '@start9labs/shared'
import { i18nPipe } from '@start9labs/shared'
import { TuiScrollbar } from '@taiga-ui/core'
import { tap } from 'rxjs'
import { MarketplaceService } from 'src/app/services/marketplace.service'

View File

@@ -156,15 +156,14 @@ export class DepErrorService {
const depStatus = getInstalledBaseStatus(dep.statusInfo)
// not running
if (depStatus !== 'running' && depStatus !== 'starting') {
return {
type: 'notRunning',
}
}
// health check failure
if (currentDep?.kind === 'running') {
// not running
if (depStatus !== 'running' && depStatus !== 'starting') {
return {
type: 'notRunning',
}
}
// health check failure
for (let id of currentDep.healthChecks) {
const check = dep.statusInfo.health[id]
if (check?.result !== 'success') {