Commit f525b21f authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'deni-dev(pc)' into 'master'

minor

See merge request !364
parents 2523da7a 015b298a
......@@ -69,11 +69,11 @@ export default class Parameter extends Component {
type: 'MAX_FILE_SIZE'
}
api.create().getAllSettingByType(body).then(response => {
console.log(response);
console.log(response.data.data[0]);
if (response.data) {
if (response.data.status === "success") {
this.setState({
sizeUpload: response.data.data[0].value === undefined ? "1" : response.data.data[0].value
sizeUpload: response.data.data[0] ? response.data.data[0].value === undefined ? "1" : response.data.data[0].value : "1"
})
}
}
......
......@@ -240,7 +240,7 @@ export default class UnitBisnis extends Component {
if (response.data) {
if (response.data.status === "success") {
this.setState({
sizeUpload: response.data.data[0].value === undefined ? "1" : response.data.data[0].value
sizeUpload: response.data.data[0] ? response.data.data[0].value === undefined ? "1" : response.data.data[0].value : "1"
})
}
}
......
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