Skip to content
This repository was archived by the owner on Feb 4, 2024. It is now read-only.

Commit e7e6814

Browse files
committed
Fixed article previews not displaying
1 parent fe275ac commit e7e6814

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

resources/js/contentTransformation.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ window.addEventListener('load', function () {
183183
caller.find('h2').html(res.title);
184184
if (res.type != 'no-extract') {
185185
caller.find('p').html(res.extract);
186-
};
187-
caller.find('p').html('No extract available!'); // TODO: Add "warning" icon for policy pages, and "info" icon for guideline pages
186+
} else {
187+
caller.find('p').html('No extract available!'); // TODO: Add "warning" icon for policy pages, and "info" icon for guideline pages
188+
}
188189
})
189190
.fail(function (res, status, err) {
190191
caller.find('p').html('Article not found!<br>Reason: ' + status + ', ' + err);

0 commit comments

Comments
 (0)