From afc5b04ceef4e83111c797c624ef09fae2cb06f3 Mon Sep 17 00:00:00 2001 From: Yi-Jacob Date: Thu, 3 Oct 2024 12:45:52 -0400 Subject: [PATCH] #350 - Fix issue with scripted services in api docs --- src/app/adf-api-docs/df-api-docs/df-api-docs.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/adf-api-docs/df-api-docs/df-api-docs.component.ts b/src/app/adf-api-docs/df-api-docs/df-api-docs.component.ts index d76b9c21..5d23fae2 100644 --- a/src/app/adf-api-docs/df-api-docs/df-api-docs.component.ts +++ b/src/app/adf-api-docs/df-api-docs/df-api-docs.component.ts @@ -46,8 +46,8 @@ export class DfApiDocsComponent implements OnInit, AfterContentInit { this.activatedRoute.data.subscribe(({ data }) => { if (data) { if ( - data.paths['/'].get.operationId && - data.paths['/'].get.operationId === 'getSoapResources' + data.paths['/']?.get.operationId && + data.paths['/']?.get.operationId === 'getSoapResources' ) { this.apiDocJson = { ...data, paths: mapSnakeToCamel(data.paths) }; } else {