Commit 26a17f95 authored by Rifka Kurnia's avatar Rifka Kurnia

Merge branch 'rifka' into 'master'

doc manag issue prod

See merge request !1269
parents 981c5e09 6d89060d
...@@ -57,6 +57,7 @@ export default class CreateManagementDoc extends Component { ...@@ -57,6 +57,7 @@ export default class CreateManagementDoc extends Component {
this.getPeriode() this.getPeriode()
this.getMonth() this.getMonth()
this.getFileSize() this.getFileSize()
console.log(this.props.allsubcoCreate)
} }
getFileSize() { getFileSize() {
...@@ -134,7 +135,7 @@ export default class CreateManagementDoc extends Component { ...@@ -134,7 +135,7 @@ export default class CreateManagementDoc extends Component {
let data = response.data.data let data = response.data.data
let typeData = [] let typeData = []
data.map((item) => { data.map((item) => {
if (String(item.value).includes('Manual')){ if (String(item.value).toLocaleLowerCase().includes('manual book tia')){
if( this.props.allsubcoCreate ){ if( this.props.allsubcoCreate ){
typeData.push( { typeData.push( {
document_category_id: item.setting_id, document_category_id: item.setting_id,
...@@ -148,7 +149,7 @@ export default class CreateManagementDoc extends Component { ...@@ -148,7 +149,7 @@ export default class CreateManagementDoc extends Component {
}) })
} }
}) })
// console.log(typeData) console.log(typeData)
let typeProps = { let typeProps = {
options: typeData.sort((a, b) => a.document_category_id - b.document_category_id), options: typeData.sort((a, b) => a.document_category_id - b.document_category_id),
getOptionLabel: (option) => option.document_category_name, getOptionLabel: (option) => option.document_category_name,
......
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