Reviewed-on: ordo/adw-frontend#72
@ -289,7 +289,7 @@ const DashboardProject = () => {
}
let now = new Date().toISOString().slice(0, 10);
let dates = result.data.data[0].data?.date;
let n = dates.findIndex(element => new Date(now) < new Date(element[0])) - 1;
let n = dates.findIndex(element => new Date(now) < new Date(element[0]));
if (n < 0) {
n = dates.length - 1;
@ -203,6 +203,17 @@ const ImportActivity = ({ params }) => {
if (prop == 'level') {
if (columnData == null) {
columnData = 1;
if (prop == 'name') {
columnData = "New Activity";
extractedRow[prop] = columnData