mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
tmp: remove policy fetch
This commit is contained in:
parent
55059c7259
commit
fc946a0db4
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user