Skip to content

Commit fdcd152

Browse files
update space error in script
1 parent 363b76b commit fdcd152

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

script.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ function displayBooks(books) {
1010
tbody.innerHTML = "";
1111
books.forEach(book => {
1212
const row = `<tr>
13-
<td>${book.Book_Title}</td>
14-
<td>${book.Author}</td>
15-
<td>${book.Barcode}</td>
16-
<td>${book.Status}</td>
17-
<td>${book.User || ""}</td>
18-
</tr>`;
13+
<td>${book["Book Title"]}</td>
14+
<td>${book["Author"]}</td>
15+
<td>${book["Barcode"]}</td>
16+
<td>${book["Status"]}</td>
17+
<td>${book["User"] || ""}</td>
18+
</tr>`;
19+
1920
tbody.innerHTML += row;
2021
});
2122
}

0 commit comments

Comments
 (0)