From 8b8fe21a2f44d3b5bb13a12a478df48a233536b7 Mon Sep 17 00:00:00 2001 From: vaishali k Date: Tue, 19 Sep 2023 16:19:04 +0530 Subject: [PATCH 1/2] Issue co-611 fix: do not show retired frameworks while creating projects for individual contents --- .../components/create-program/create-program.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/client/src/app/modules/program/components/create-program/create-program.component.ts b/src/app/client/src/app/modules/program/components/create-program/create-program.component.ts index bf383a226d..ef37444f31 100644 --- a/src/app/client/src/app/modules/program/components/create-program/create-program.component.ts +++ b/src/app/client/src/app/modules/program/components/create-program/create-program.component.ts @@ -396,8 +396,7 @@ export class CreateProgramComponent implements OnInit, AfterViewInit { getFramework () { let frameworks = []; let systemRequests = []; - const channelFrameworks = _.get(this.programScope['userChannelData'], 'frameworks'); - const frameworkTypeGroup = _.groupBy(channelFrameworks, 'type'); + const channelFrameworks = _.filter(_.get(this.programScope['userChannelData'], 'frameworks'), {'status': 'Live'}); const frameworkTypeGroup = _.groupBy(channelFrameworks, 'type'); return new Promise ((resolve, reject) => { _.forEach(this.allowedFrameworkTypes, type => { if (!_.isEmpty(_.get(frameworkTypeGroup, type))) { From 7355ef9a4942fc44819486826d04f61254284352 Mon Sep 17 00:00:00 2001 From: vaishali k Date: Tue, 19 Sep 2023 16:20:08 +0530 Subject: [PATCH 2/2] Issue co-611 fix: do not show retired frameworks while creating projects for individual contents --- .../components/create-program/create-program.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/client/src/app/modules/program/components/create-program/create-program.component.ts b/src/app/client/src/app/modules/program/components/create-program/create-program.component.ts index ef37444f31..94da5e72ed 100644 --- a/src/app/client/src/app/modules/program/components/create-program/create-program.component.ts +++ b/src/app/client/src/app/modules/program/components/create-program/create-program.component.ts @@ -396,7 +396,8 @@ export class CreateProgramComponent implements OnInit, AfterViewInit { getFramework () { let frameworks = []; let systemRequests = []; - const channelFrameworks = _.filter(_.get(this.programScope['userChannelData'], 'frameworks'), {'status': 'Live'}); const frameworkTypeGroup = _.groupBy(channelFrameworks, 'type'); + const channelFrameworks = _.filter(_.get(this.programScope['userChannelData'], 'frameworks'), {'status': 'Live'}); + const frameworkTypeGroup = _.groupBy(channelFrameworks, 'type'); return new Promise ((resolve, reject) => { _.forEach(this.allowedFrameworkTypes, type => { if (!_.isEmpty(_.get(frameworkTypeGroup, type))) {