mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +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);
|
const sortedDocuments = processedDocuments.sort((a, b) => b.created_at - a.created_at);
|
||||||
|
|
||||||
// filter out documents that are in the paid lessons array
|
// 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);
|
setProcessedDocuments(filteredDocuments);
|
||||||
} else {
|
} else {
|
||||||
|
@ -56,7 +56,7 @@ export default function VideosCarousel() {
|
|||||||
const sortedVideos = processedVideos.sort((a, b) => b.created_at - a.created_at);
|
const sortedVideos = processedVideos.sort((a, b) => b.created_at - a.created_at);
|
||||||
|
|
||||||
// filter out videos that are in the paid lessons array
|
// 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);
|
setProcessedVideos(filteredVideos);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user