Commit 97ddf8b2 authored by qorri_di's avatar qorri_di

Merge branch 'dev/riri' into 'ENV-DEV'

Fixing Company

See merge request !1879
parents 784981d2 5d9aae0d
......@@ -195,7 +195,7 @@ export default class Perusahaan extends Component {
customBodyRender: (val, tableMeta) => {
let check = null
if (tableMeta.rowData[7] != null) {
check = tableMeta.rowData[7].findIndex((val) => val.field.includes('unit_bisnis'))
check = tableMeta.rowData[7].findIndex((val) => val.field.includes('currency'))
if (check > -1) {
this.setState({ buttonError: true })
}
......@@ -203,12 +203,12 @@ export default class Perusahaan extends Component {
return (
<div style={{ display: 'flex' }}>
{tableMeta.rowData[7] != null && check > -1 ?
<a data-tip={tableMeta.rowData[7][check].message} data-for="unit_bisnis">
<a data-tip={tableMeta.rowData[7][check].message} data-for="currency">
<span style={{ color: check != null && check > -1 ? "red" : 'black' }}>{val === "" ? "Empty" : val}</span>
</a> :
<span style={{ color: check != null && check > -1 ? "red" : 'black' }}>{val === "" ? "Empty" : val}</span>
}
<ReactTooltip border={true} id="unit_bisnis" place="bottom" type="light" effect="solid" />
<ReactTooltip border={true} id="currency" place="bottom" type="light" effect="solid" />
</div >
);
}
......@@ -220,7 +220,7 @@ export default class Perusahaan extends Component {
customBodyRender: (val, tableMeta) => {
let check = null
if (tableMeta.rowData[7] != null) {
check = tableMeta.rowData[7].findIndex((val) => val.field.includes('unit_bisnis'))
check = tableMeta.rowData[7].findIndex((val) => val.field.includes('default_currency'))
if (check > -1) {
this.setState({ buttonError: true })
}
......@@ -228,12 +228,12 @@ export default class Perusahaan extends Component {
return (
<div style={{ display: 'flex' }}>
{tableMeta.rowData[7] != null && check > -1 ?
<a data-tip={tableMeta.rowData[7][check].message} data-for="unit_bisnis">
<a data-tip={tableMeta.rowData[7][check].message} data-for="default_currency">
<span style={{ color: check != null && check > -1 ? "red" : 'black' }}>{val === "" ? "Empty" : val}</span>
</a> :
<span style={{ color: check != null && check > -1 ? "red" : 'black' }}>{val === "" ? "Empty" : val}</span>
}
<ReactTooltip border={true} id="unit_bisnis" place="bottom" type="light" effect="solid" />
<ReactTooltip border={true} id="default_currency" place="bottom" type="light" effect="solid" />
</div >
);
}
......
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