fix publish page
This commit is contained in:
parent
6eb3c47417
commit
3a5549c2dc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue