check
This commit is contained in:
@@ -530,9 +530,10 @@
|
||||
|
||||
function buildRow(item, isNew = false) {
|
||||
const id = item.id ?? item._id ?? item.ID ?? "";
|
||||
const done = !!item.done;
|
||||
const toBool = (v) => v === 1 || v === true || v === "1";
|
||||
const done = toBool(item.done);
|
||||
const name = item.name ?? item.title ?? "";
|
||||
const today = !!(item.today ?? item.Today);
|
||||
const today = toBool(item.today ?? item.Today);
|
||||
const mins = item.minutes ?? item.Minutes ?? item.mins ?? "";
|
||||
|
||||
const tr = document.createElement("tr");
|
||||
|
||||
Reference in New Issue
Block a user