From 700119cc9efdfd887a4fefe758c2e3eb931a9341 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Thu, 22 Sep 2016 23:04:46 -0400 Subject: [PATCH] opts can be undefined and throw error --- Gemfile.lock | 3 --- frontend/src/Metamaps/TopicCard.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index c2fd0d28..79638ae7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -332,8 +332,5 @@ DEPENDENCIES uglifier uservoice-ruby -RUBY VERSION - ruby 2.3.0p0 - BUNDLED WITH 1.12.5 diff --git a/frontend/src/Metamaps/TopicCard.js b/frontend/src/Metamaps/TopicCard.js index 7320d285..b92d7edd 100644 --- a/frontend/src/Metamaps/TopicCard.js +++ b/frontend/src/Metamaps/TopicCard.js @@ -40,7 +40,7 @@ const TopicCard = { */ showCard: function (node, opts) { var self = TopicCard - + if (!opts) opts = {} var topic = node.getData('topic') self.openTopicCard = topic