From 029ad03fd533d33db1159c42335d459265702c36 Mon Sep 17 00:00:00 2001 From: rlx Date: Wed, 14 Nov 2018 10:23:32 +0000 Subject: [PATCH] untested fix for NaNs appearing in UI after deselecting annotations in edits section --- static/js/editPanel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/editPanel.js b/static/js/editPanel.js index 3658da7f..a006613c 100644 --- a/static/js/editPanel.js +++ b/static/js/editPanel.js @@ -331,7 +331,9 @@ pandora.ui.editPanel = function(isEmbed) { pandora.UI.set({editSelection: data.ids}); }, selectannotation: function(data) { - that.options({position: data['in']}) + if ('in' in data) { + that.options({position: data['in']}) + } }, sort: function(data) { pandora.UI.set({editSort: data});