Skip to content

Commit

Permalink
support all type of blogs for both use cases and tutorials (#3275)
Browse files Browse the repository at this point in the history
Signed-off-by: at670475 <andrea.tabone@broadcom.com>
  • Loading branch information
taban03 authored Jan 19, 2024
1 parent 30fbac7 commit d955fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-catalog-ui/frontend/src/utils/utilFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function countAdditionalContents(service) {
(product) => service?.serviceId === product.name
) || { useCases: [], tutorials: [], videos: [], documentation: null };

const filteredUseCases = useCases?.filter(({ url, user }) => isValidUrl(url) && user);
const filteredUseCases = useCases?.filter(({ url }) => isValidUrl(url));
const filteredTutorials = tutorials?.filter(({ url }) => isValidUrl(url));
const useCasesCounter = countValidItems(filteredUseCases, (item) => isValidUrl(item.url));
const tutorialsCounter = countValidItems(filteredTutorials, (item) => isValidUrl(item.url));
Expand Down

0 comments on commit d955fbc

Please sign in to comment.