opts can be undefined and throw error

This commit is contained in:
Connor Turland 2016-09-22 23:04:46 -04:00
parent 07e4ac3865
commit 700119cc9e
2 changed files with 1 additions and 4 deletions

View file

@ -332,8 +332,5 @@ DEPENDENCIES
uglifier
uservoice-ruby
RUBY VERSION
ruby 2.3.0p0
BUNDLED WITH
1.12.5

View file

@ -40,7 +40,7 @@ const TopicCard = {
*/
showCard: function (node, opts) {
var self = TopicCard
if (!opts) opts = {}
var topic = node.getData('topic')
self.openTopicCard = topic