Skip to content

Commit

Permalink
Fixed dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedgemon4 committed Apr 6, 2024
1 parent 2f56b02 commit 5eaf061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/video/[videoId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function VideoDetailedPage({ params }: VideoDetailedPageProps) {
setTitleEdit(video.title)
setDescriptionEdit(video?.description ?? '')
setIsOwner(video?.ownerId === userId)
}, [video])
}, [video, userId])

useEffect(() => {
setIsFetchingVideo(true)
Expand Down

0 comments on commit 5eaf061

Please sign in to comment.