tmp: remove policy fetch

This commit is contained in:
srgooglo 2022-10-10 16:42:51 +02:00
parent 55059c7259
commit fc946a0db4

View File

@ -69,16 +69,6 @@ export default (props) => {
} }
} }
const fetchUploadPolicy = () => {
const policy = api.upload.policy().catch(error => {
return false
})
if (policy) {
setUploadPolicy(policy)
}
}
const onUploadFile = async (req) => { const onUploadFile = async (req) => {
// hide uploader // hide uploader
setUploaderVisible(false) setUploaderVisible(false)
@ -180,7 +170,7 @@ export default (props) => {
} }
React.useEffect(() => { React.useEffect(() => {
fetchUploadPolicy() //fetchUploadPolicy()
}, []) }, [])
// set loading to true menwhile pending is not empty // set loading to true menwhile pending is not empty