Fixing handling of null times.

gunner/thrimbletrimmer-improvements
Ubuntu 5 years ago
parent 232ef0a11d
commit 0b2a3ee0cc

@ -232,8 +232,8 @@
<td>${event.state}</td> <td>${event.state}</td>
<td><a href="/thrimbletrimmer?id=${event.id}">Edit</a></td> <td><a href="/thrimbletrimmer?id=${event.id}">Edit</a></td>
<td>${event.video_link ? "<a href='"+event.video_link+"'>Link</a>":""}</td> <td>${event.video_link ? "<a href='"+event.video_link+"'>Link</a>":""}</td>
<td>${event.edit_time.substring(0,19)}</td> <td>${event.edit_time ? event.edit_time.substring(0,19):""}</td>
<td>${event.upload_time.substring(0,19)}</td> <td>${event.upload_time ? event.upload_time.substring(0,19):""}</td>
`; `;
document.getElementById('QueueTable').appendChild(row); document.getElementById('QueueTable').appendChild(row);
}); });

Loading…
Cancel
Save