diff --git a/public/react/src/modules/user/usersInfo/video/VideoUploadList.js b/public/react/src/modules/user/usersInfo/video/VideoUploadList.js index 0458f0062..1f6976734 100644 --- a/public/react/src/modules/user/usersInfo/video/VideoUploadList.js +++ b/public/react/src/modules/user/usersInfo/video/VideoUploadList.js @@ -177,10 +177,12 @@ function VideoUploadList (props) { } function doDelete(index, isSuccess) { uploader.deleteFile(index) - // uploader.cancelFile(index) if (isSuccess) { - deleteVideoInCloud(username, state.videoes[index].videoId) - } + // uploader.deleteFile(index) + deleteVideoInCloud(username, state.videoes[index].videoId) + } else { + // uploader.cancelFile(index) + } clearInput() dispatch({type: 'removeVideo', index}) @@ -384,7 +386,7 @@ function VideoUploadList (props) {