Commit 242e551e authored by Hardiansyah's avatar Hardiansyah

validasi historical

parent 6e36aac0
......@@ -108,7 +108,7 @@ class ReportHistorical extends Component {
handleDownload = async () => {
try {
const { data } = this.state
if (!data?.company_id) {
if (!data?.company_id || data?.company_id?.length === 0) {
this.showAlert('Data is not complete !', Constant.ALERT_SEVIRITY.WARNING);
return
}
......
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