From ae00cb5fc632c6675a0b3c2d909ec44e72fd143f Mon Sep 17 00:00:00 2001 From: SuvajitTarento Date: Tue, 31 Aug 2021 15:30:48 +0530 Subject: [PATCH 1/2] Change for cId array to string --- .../lib/components/discuss-start/discuss-start.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/discussion-ui/src/lib/components/discuss-start/discuss-start.component.ts b/projects/discussion-ui/src/lib/components/discuss-start/discuss-start.component.ts index 4c8daa18..94b8d23e 100644 --- a/projects/discussion-ui/src/lib/components/discuss-start/discuss-start.component.ts +++ b/projects/discussion-ui/src/lib/components/discuss-start/discuss-start.component.ts @@ -135,7 +135,8 @@ export class DiscussStartComponent implements OnInit { this.uploadSaveData = true; this.showErrorMsg = false; const postCreateReq = { - cid: this.categoryId ? [this.categoryId] : [parseInt(form.value.category)], + // tslint:disable-next-line: radix + cid: this.categoryId ? this.categoryId : parseInt(form.value.category), title: form.value.question, content: form.value.description, tags: form.value.tags, From af262420ca1bf9adb4a3377c212ef04dc5e09668 Mon Sep 17 00:00:00 2001 From: SuvajitTarento Date: Tue, 31 Aug 2021 17:13:43 +0530 Subject: [PATCH 2/2] Changes for package version --- projects/discussion-ui/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/discussion-ui/package.json b/projects/discussion-ui/package.json index 6208e5ed..6d049e73 100644 --- a/projects/discussion-ui/package.json +++ b/projects/discussion-ui/package.json @@ -1,6 +1,6 @@ { "name": "@sunbird-cb/discussions-ui-v8", - "version": "2.0.56", + "version": "2.0.57", "repository": { "type": "git", "url": "git+https://github.com/Sunbird-Ed/discussions-UI.git"