Skip to content

Commit f431ed7

Browse files
committed
fix: push li
1 parent d4e8178 commit f431ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

042-live user filter/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const getData = async () => {
1818
result.innerHTML = "";
1919
results.forEach((user) => {
2020
const li = document.createElement("li");
21-
listItems.push(li);
2221
li.innerHTML = `
2322
<img
2423
src="${user.picture.large}"
@@ -29,6 +28,7 @@ const getData = async () => {
2928
<p>${user.location.city}, ${user.location.country}</p>
3029
</div>
3130
`;
31+
listItems.push(li);
3232
result.appendChild(li);
3333
});
3434
};

0 commit comments

Comments
 (0)