mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
Fix id
This commit is contained in:
parent
9b0def8123
commit
229cd2ecb3
@ -58,7 +58,7 @@ export default function DocumentsCarousel() {
|
||||
const sortedDocuments = processedDocuments.sort((a, b) => b.created_at - a.created_at);
|
||||
|
||||
// filter out documents that are in the paid lessons array
|
||||
const filteredDocuments = sortedDocuments.filter(document => !paidLessons.includes(document.id));
|
||||
const filteredDocuments = sortedDocuments.filter(document => !paidLessons.includes(document?.d));
|
||||
|
||||
setProcessedDocuments(filteredDocuments);
|
||||
} else {
|
||||
|
@ -56,7 +56,7 @@ export default function VideosCarousel() {
|
||||
const sortedVideos = processedVideos.sort((a, b) => b.created_at - a.created_at);
|
||||
|
||||
// filter out videos that are in the paid lessons array
|
||||
const filteredVideos = sortedVideos.filter(video => !paidLessons.includes(video.id));
|
||||
const filteredVideos = sortedVideos.filter(video => !paidLessons.includes(video?.d));
|
||||
|
||||
setProcessedVideos(filteredVideos);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user