From 1ecf03bb1f28f5ef2f6232785c0b3fe903cb160c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 13 May 2019 14:30:28 +0200 Subject: [PATCH] Fix --- js/app/views/PlotComponents/PlotTabPanel.js | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/js/app/views/PlotComponents/PlotTabPanel.js b/js/app/views/PlotComponents/PlotTabPanel.js index 111bdef..4b099fe 100644 --- a/js/app/views/PlotComponents/PlotTabPanel.js +++ b/js/app/views/PlotComponents/PlotTabPanel.js @@ -84,6 +84,9 @@ Ext.define('amdaPlotComp.PlotTabPanel', { this.updatePlotTabs(); }, afterrender: function(tab, e0pts) { + if (!tab.tab.el) { + return; + } tab.tab.el.on('contextmenu', function(e, t, eOpts) { var menu = new Ext.menu.Menu({ items: [ -- libgit2 0.21.2