Merge pull request #225 from reosarevok/patch-2

Update childNode after React conversion
This commit is contained in:
Laurent Monin 2019-06-20 14:25:33 +02:00 committed by GitHub
commit 5c3dd47709
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ header.appendChild(headerColumn);
// We add the links to the recordings
for (let i = 0; i < recordings.length; i++) {
const recordingRow = recordings[i];
const recordingUrl = recordingRow.childNodes[3].childNodes[0].getAttribute('href');
const recordingUrl = recordingRow.childNodes[1].childNodes[0].getAttribute('href');
const extraCell = document.createElement('td');
extraCell.innerHTML = `<a href="${recordingUrl}/edit">edit</a>`;
recordingRow.appendChild(extraCell);