From 756cf0b758423b49b6c4a1c99064a581c42bd25e Mon Sep 17 00:00:00 2001 From: OgunyemiO <142920130+OgunyemiO@users.noreply.github.com> Date: Mon, 26 Feb 2024 14:22:58 +0000 Subject: [PATCH] File upload casetype field fix (#1675) * File upload casetype field fix * version updated --------- Co-authored-by: Ritesh Dsouza --- package.json | 2 +- projects/ccd-case-ui-toolkit/package.json | 2 +- .../palette/document/write-document-field.component.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1d5a49f9cb..a8ba2f8dcf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hmcts/ccd-case-ui-toolkit", - "version": "7.0.13", + "version": "7.0.15", "engines": { "node": ">=18.17.0" }, diff --git a/projects/ccd-case-ui-toolkit/package.json b/projects/ccd-case-ui-toolkit/package.json index f753df72c2..e9dbf1e330 100644 --- a/projects/ccd-case-ui-toolkit/package.json +++ b/projects/ccd-case-ui-toolkit/package.json @@ -1,6 +1,6 @@ { "name": "@hmcts/ccd-case-ui-toolkit", - "version": "7.0.13", + "version": "7.0.15", "engines": { "node": ">=18.17.0" }, diff --git a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/document/write-document-field.component.ts b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/document/write-document-field.component.ts index 2e6ef8561e..9d6b61be32 100644 --- a/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/document/write-document-field.component.ts +++ b/projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/document/write-document-field.component.ts @@ -196,7 +196,7 @@ export class WriteDocumentFieldComponent extends AbstractFieldWriteComponent imp private subscribeToCaseDetails(): void { this.caseNotifierSubscription = this.caseNotifier.caseView.subscribe({ next: (caseDetails: CaseView) => { - this.caseTypeId = caseDetails?.case_id; + this.caseTypeId = caseDetails?.case_type.id; this.jurisdictionId = caseDetails?.case_type?.jurisdiction?.id; } });