Skip to content

Commit 73a8ad7

Browse files
author
Nicos
committed
Ensure grid is on when articles are returned
Relates to #59
1 parent 603e07a commit 73a8ad7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

public/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function displayResults(error, articles) {
5454
sectionResults.style.display = "block";
5555
sectionResults.innerHTML = '<h3>No results found! <br> Please try another search query</h3>';
5656
} else {
57+
sectionResults.style.display = "grid";
5758
for (var i = 0; i < articles.length; i++) {
5859
if (articles[i].urlToImage && articles[i].urlToImage.startsWith("http")) {
5960
var newsArticle = document.createElement("article");

0 commit comments

Comments
 (0)