From ebc8846fcbf204e4487a16e57963f4fae1556218 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 23 Mar 2015 12:13:10 -0700 Subject: [PATCH] Fix bug in panels controller Previously, we'd create a new model instance even when one already existed in the inbox. --- js/panel_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/panel_controller.js b/js/panel_controller.js index 4e0f6d3d7..f02e07a3c 100644 --- a/js/panel_controller.js +++ b/js/panel_controller.js @@ -43,7 +43,7 @@ window.getConversation = function(attrs) { var conversation = window.inbox.get(attrs.id) || attrs; - conversation = conversations.add(attrs); + conversation = conversations.add(conversation); return conversation; };