diff --git a/src/pages/news/components/button-push2video.tsx b/src/pages/news/components/button-push2video.tsx index 201e764..8d08a1d 100644 --- a/src/pages/news/components/button-push2video.tsx +++ b/src/pages/news/components/button-push2video.tsx @@ -31,9 +31,13 @@ export default function ButtonPush2Video(props: PushVideoProps) { const {t} = useTranslation() const navigate = useNavigate() const handlePush = (action: ProcessResult) => { - setLoading(true) const skip = action === ProcessResult.Skip && state.errorIds.length > 0 const ids = !skip ? props.ids : props.ids.filter(id => !state.errorIds.includes(id)); + if(skip && (state.errorIds.length == props.ids.length || ids.length == 0)){ + setState({modalVisible: false}) + return; + } + setLoading(true) push2video(ids).then(() => { setState({modalVisible: false}) if (skip) {