Bookmark fix
This commit is contained in:
@@ -4,13 +4,13 @@ import { textClasses } from 'styles';
|
||||
import LinkGroups from './LinkGroups';
|
||||
|
||||
function Links({ contentType }: any) {
|
||||
const { isMobile, linksIsFetched, groupsIsFetched, groups, bookmarkData } =
|
||||
const { isMobile, linksIsFetched, groupsIsFetched, groupData, bookmarkData } =
|
||||
useCommonHooks();
|
||||
return (
|
||||
<>
|
||||
{groupsIsFetched &&
|
||||
linksIsFetched &&
|
||||
groups?.length > 0 &&
|
||||
groupData?.length > 0 &&
|
||||
contentType.length > 0 && (
|
||||
<Stack id='links' style={{ gap: 0 }}>
|
||||
<Text className={textClasses.sectionTitle} classNames={textClasses}>
|
||||
@@ -26,7 +26,7 @@ function Links({ contentType }: any) {
|
||||
gridTemplateRows: 'auto',
|
||||
}}
|
||||
>
|
||||
{groups.map((category: any) => {
|
||||
{groupData.map((category: any) => {
|
||||
if (
|
||||
contentType.includes(category.filterName) ||
|
||||
contentType.includes('All')
|
||||
@@ -36,7 +36,7 @@ function Links({ contentType }: any) {
|
||||
key={category}
|
||||
category={category.categoryName}
|
||||
links={bookmarkData.filter(
|
||||
(bookmark: any) => bookmark.category === category,
|
||||
(bookmark: any) => bookmark.category === category.categoryName,
|
||||
)}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user