fix: switching between previewable & non-previewable files (#1021)
This commit is contained in:
@@ -69,6 +69,7 @@ export const FilePreviewModal: FunctionComponent<Props> = observer(({ applicatio
|
||||
setIsFilePreviewable(isPreviewable)
|
||||
|
||||
if (!isPreviewable) {
|
||||
setObjectUrl('')
|
||||
setIsLoadingFile(false)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user