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" 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,