diff --git a/ui/component/publishFile/view.jsx b/ui/component/publishFile/view.jsx index 290ff8a19..21691c7de 100644 --- a/ui/component/publishFile/view.jsx +++ b/ui/component/publishFile/view.jsx @@ -181,7 +181,7 @@ function PublishFile(props: Props) { setOversized(false); // select file, start to select a new one, then cancel - if (!file) { + if (!file || !file.type) { updatePublishForm({ filePath: '', name: '' }); return; }