diff --git a/projects/packages/videopress/changelog/update-videopress-update-thumb-placeholder-while-updating b/projects/packages/videopress/changelog/update-videopress-update-thumb-placeholder-while-updating new file mode 100644 index 0000000000000..d1cf9f41e5de8 --- /dev/null +++ b/projects/packages/videopress/changelog/update-videopress-update-thumb-placeholder-while-updating @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +VideoPress: fix thumbnail update bug that showed the old thumbnail for a couple seconds on the details page. diff --git a/projects/packages/videopress/src/client/admin/components/edit-video-details/index.tsx b/projects/packages/videopress/src/client/admin/components/edit-video-details/index.tsx index 769695ec10655..61982c0e5930a 100644 --- a/projects/packages/videopress/src/client/admin/components/edit-video-details/index.tsx +++ b/projects/packages/videopress/src/client/admin/components/edit-video-details/index.tsx @@ -223,6 +223,7 @@ const EditVideoDetails = () => { selectPosterImageFromLibrary, posterImageSource, libraryAttachment, + isUpdatingPoster, } = useEditDetails(); const { canPerformAction } = usePermission(); @@ -312,7 +313,7 @@ const EditVideoDetails = () => { { processing, isDeleting, updateVideoPrivacy, + isUpdatingPoster, } = useVideo( Number( videoId ), true ); const { playbackToken, isFetchingPlaybackToken } = usePlaybackToken( video ); @@ -331,5 +332,6 @@ export default () => { selectedTime, ...metaEditData, ...posterEditData, + isUpdatingPoster, }; };