diff --git a/jambotron-ui/src/app/modules/user-module/project-details.component/project-details.component.ts b/jambotron-ui/src/app/modules/user-module/project-details.component/project-details.component.ts index d81d0cc..7de3a44 100644 --- a/jambotron-ui/src/app/modules/user-module/project-details.component/project-details.component.ts +++ b/jambotron-ui/src/app/modules/user-module/project-details.component/project-details.component.ts @@ -293,10 +293,10 @@ export class ProjectDetailsComponent implements OnInit, OnDestroy, AfterViewChec // 4. Финальный пуленепробиваемый фоллбэк для старых контейнеров (вырезаем имя проекта) // Для "test-web" -> cleanName = "test-web" -> parts = ['test', 'web'] -> возвращает "web" - const parts = cleanName.split('-'); - if (parts.length >= 2) { - return parts.slice(1).join('-'); - } + // const parts = cleanName.split('-'); + // if (parts.length >= 2) { + // return parts.slice(1).join('-'); + // } // Только если вообще ничего не получилось извлечь — выводим реальное предупреждение if (!cleanName) { @@ -312,6 +312,7 @@ export class ProjectDetailsComponent implements OnInit, OnDestroy, AfterViewChec */ getContainerDomain(container: any): string | null { const serviceId = this.getServiceName(container); + if (!serviceId || !this.config?.serviceConfigs) return null; // Ищем настройки в мапе по системному ID (например, srv-0)