Skip to content

Commit

Permalink
remove console.log and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreSchrothDev committed Nov 12, 2023
1 parent b6ee802 commit 8212be6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion apps/trackflix/src/api/StrapiApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export class StrapiApi implements IApi {
}
).then((res) => res.json())

//handle null data case
const videos: VideoOnDemand[] = await Promise.all(
response.data.map((video: StrapiMedia) => {
const result = this.strapiMediaToVideoOnDemand(video)
Expand Down
1 change: 0 additions & 1 deletion apps/trackflix/src/shared/home/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ const Landing = () => {
useEffect(() => {
const fetchHighlited = async () => {
const highlightedVideos = await api.fetchHighlightedVideos()
console.log(highlightedVideos)
if (highlightedVideos && highlightedVideos.length > 0) {
const media = highlightedVideos[0]
setVideo(media)
Expand Down
9 changes: 0 additions & 9 deletions apps/trackflix/src/shared/videos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const VideoPage = () => {
const [sections, setSections] = useState<Array<Section> | null>(null)
const [loadingVodFiles, setLoadingVodFiles] = useState<boolean>(false)
const [loadingSections, setLoadingSections] = useState<boolean>(false)
// const [haveHighlightedContent, setHaveHighlightedContent] = useState(false)

const { api } = useContext(CMSContext)

Expand All @@ -38,15 +37,7 @@ const VideoPage = () => {
try {
const fetchedData = await api.fetchVodFiles(null, true)
const assets = fetchedData.data
console.log(assets)
setVodAssets(assets)
// if (
// assets.findIndex(
// (elem) => elem.media?.highlighted === true
// ) ! "" == -1
// ) {
// setHaveHighlightedContent(true)
// }
} catch (error) {
console.error('videos.tsx(fetchVodFiles):', error)
}
Expand Down

0 comments on commit 8212be6

Please sign in to comment.