Skip to content

Commit f610c34

Browse files
committed
add null check
1 parent f73ed98 commit f610c34

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/assets/v2/js/grants/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ let grantsHasNext = false;
33
let numGrants = '';
44

55
const toggleStyle = function(style) {
6+
7+
if (!style) {
8+
return;
9+
}
10+
611
let banner;
712

813
if (style.bg) {

0 commit comments

Comments
 (0)