Skip to content

Commit

Permalink
Only query exact grid xtypes (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Nov 1, 2023
1 parent 754299b commit 2830abb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/util/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Ext.define('CpsiMapview.util.Grid', {
// we can't keep a reference to the window in this class
// as a new Ext.menu.Item is created each time the menu is
// opened - use Ext.ComponentQuery instead
var existingGrids = Ext.ComponentQuery.query(gridXType);
// we pass in (true) to ensure an exact xtype match - excluding inherited classes
var existingGrids = Ext.ComponentQuery.query(gridXType + '(true)');

var gridWindowExists =
existingGrids.length > 0 &&
Expand Down

0 comments on commit 2830abb

Please sign in to comment.