Skip to content

Commit

Permalink
MMI-3113 featured story filter not showing other source for online me…
Browse files Browse the repository at this point in the history
…dia (#2399)

* MMI-3113 Removed filter for CP News on Online content as the CP News should not be added to Online Media type filter.

* MMI-3113 Added filter for CP news
  • Loading branch information
nehalaggarwal-bcgov authored Feb 5, 2025
1 parent 73892b4 commit 0a0612a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ export const FilterOptions: React.FC<IMediaTypeFiltersProps> = ({ filterStoreNam
break;
case FilterOptionTypes.Internet:
updatedFilter.contentTypes = [ContentTypeName.Internet];
updatedFilter.sourceIds = sources.filter((s) => s.code !== 'CPNEWS').map((s) => s.id);
updatedFilter.mediaTypeIds = mediaTypes
.filter((p) => p.name !== 'Events')
.filter((p) => p.name !== 'Events' && p.name !== 'CP Wire')
.map((p) => p.id);
break;
case FilterOptionTypes.CPNews:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export enum HomeFilterType {
Papers = 'PrintContent',
RadioTV = 'AudioVideo',
Internet = 'internet',
Online = 'internet',
CPNews = 'cpNews',
All = 'all',
Events = 'events',
Expand Down

0 comments on commit 0a0612a

Please sign in to comment.