Commit 2c87ce68 authored by muhammad ridwan's avatar muhammad ridwan

fixing name download

parent e25c902d
...@@ -183,7 +183,7 @@ class RepotrCafrm extends Component { ...@@ -183,7 +183,7 @@ class RepotrCafrm extends Component {
let url = window.URL.createObjectURL(res); let url = window.URL.createObjectURL(res);
let a = document.createElement('a'); let a = document.createElement('a');
a.href = url; a.href = url;
a.download = `Progress Report CARFM ${this.state.curYear}-${this.state.curYear}.xlsx`; a.download = `Progress Report CARFM ${this.state.curYear}-${this.state.curMonth}.xlsx`;
a.click(); a.click();
} }
} }
......
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