fix: download and upload files (#223)
* fix: download for unknown mime types * fix: async process two files from the queue * refactor: upload functions
This commit is contained in:
@@ -186,12 +186,9 @@ export function FileManagerPage(): ReactElement {
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
if (status.all !== CheckState.OK) {
|
||||
setShowConnectionError(true)
|
||||
} else {
|
||||
setShowConnectionError(false)
|
||||
}
|
||||
}, [status.all])
|
||||
const isApiError = status.apiConnection.checkState !== CheckState.OK || !status.apiConnection.isEnabled
|
||||
setShowConnectionError(isApiError)
|
||||
}, [status.apiConnection])
|
||||
|
||||
useEffect(() => {
|
||||
if (!beeApi) {
|
||||
|
||||
Reference in New Issue
Block a user