Browse Source

Merge pull request 'dev-wahyu' (#72) from dev-wahyu into staging

Reviewed-on: ordo/adw-frontend#72
pull/2/head
ibnu 1 year ago
parent
commit
ade84f67cb
  1. 2
      src/views/Dashboard/DashboardProject.js
  2. 11
      src/views/SimproV2/CreatedProyek/ImportActivity/index.js

2
src/views/Dashboard/DashboardProject.js

@ -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;
}

11
src/views/SimproV2/CreatedProyek/ImportActivity/index.js

@ -203,6 +203,17 @@ const ImportActivity = ({ params }) => {
}
}
if (prop == 'level') {
if (columnData == null) {
columnData = 1;
}
}
if (prop == 'name') {
if (columnData == null) {
columnData = "New Activity";
}
}
extractedRow[prop] = columnData
}

Loading…
Cancel
Save