Commit eae247a0 authored by rifkaki's avatar rifkaki

issue index 5 docmanag dan handleLoading

parent b25c41af
......@@ -123,7 +123,7 @@ export default class getAllDocument extends Component {
openPopUp = async (index, val, type) =>{
if (type === 'download') {
let res = await fetch(
`${process.env.REACT_APP_URL_MAIN_BE}/public/document/download_document?documentName=`+this.state.docPath[val]+"&&fileType="+index[5]
`${process.env.REACT_APP_URL_MAIN_BE}/public/document/download_document?documentName=`+this.state.docPath[val]+"&&fileType="+index[6]
)
res = await res.blob()
// console.log(res)
......
......@@ -302,6 +302,7 @@ export default class CreateManagementDoc extends Component {
})
}
}
this.props.handleLoading(0)
}
deleteFile(e) {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment