fix: switching between previewable & non-previewable files (#1021)

This commit is contained in:
Aman Harwara
2022-05-10 21:54:12 +05:30
committed by GitHub
parent 072af12ffe
commit ae1097f207
2 changed files with 8 additions and 2 deletions

View File

@@ -69,6 +69,7 @@ export const FilePreviewModal: FunctionComponent<Props> = observer(({ applicatio
setIsFilePreviewable(isPreviewable)
if (!isPreviewable) {
setObjectUrl('')
setIsLoadingFile(false)
}