Commit ff352c8b authored by Rifka Kurnia Irfiana's avatar Rifka Kurnia Irfiana

Merge branch 'master' of http://103.44.149.204/d.arizona/tia-dev into rifka

parents befc2725 f525b21f
......@@ -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