Skip to content
This repository was archived by the owner on Apr 2, 2022. It is now read-only.

Commit 1f16c10

Browse files
author
Scott K
committed
Resolves page not loading if single category is not an array
1 parent 65559a4 commit 1f16c10

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/assets/javascripts/models/event_model.coffee

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ EventKit.Event = DS.Model.extend({
5656
).property('additional_arguments')
5757

5858
categoryList: (->
59-
JSON.parse(@get('category'))
59+
try
60+
JSON.parse(@get('category'))
61+
catch error
62+
[@get('category')]
6063
).property('category')
6164

6265
newsletterList: (->

config/initializers/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "1.0.1"
1+
VERSION = "1.0.2"

0 commit comments

Comments
 (0)