Skip to content

Commit df487e7

Browse files
nikhilrayaproluniranjan94
authored andcommitted
changes for event box component (#2710)
* changes for event box component * changes for removing jslint errors * Update event-box-component.js
1 parent 3b92b78 commit df487e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/static/js/admin/guest/explore/event-box-component.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ Vue.component('event-box', {
2222
return moment(this.event.start_time).format('ddd, MMM DD HH:mm A');
2323
},
2424
locationName: function () {
25-
return this.event.location_name.split(",")[0];
25+
if (this.event.location_name && _.isString(this.event.location_name)) {
26+
return this.event.location_name.split(",")[0];
27+
} else {
28+
return "";
29+
}
2630
},
2731
backgroundImage: function () {
2832

0 commit comments

Comments
 (0)