mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
fix: Create table rows if they don't exist
This commit is contained in:
parent
e62003c0ce
commit
6230df749e
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
var tableBody = document.querySelector('table tbody');
|
||||
allData.forEach(function(row, index) {
|
||||
var tr = tableBody.children[index];
|
||||
if (!tr) {
|
||||
// If the row doesn't exist, create it
|
||||
tr = document.createElement('tr');
|
||||
tableBody.appendChild(tr);
|
||||
}
|
||||
tr.id = 'edit-row-' + index;
|
||||
tr.style.cursor = 'pointer';
|
||||
tr.onclick = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue