-
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
In the console I see the following JS error:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toISOString')
at cleanData (script.js:37:29)
at script.js:74:25
function cleanData(data) {
const today = new Date();
for (let i = 0; i < data.length; i++) {
// Remove the last element: "Notes"
data[i] = data[i].slice(0, -1);
// Set second element to third element
data[i][1] = data[i][2].toISOString().slice(0, 10);
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Metadata
Metadata
Assignees
Labels
No labels