Skip to content

Commit

Permalink
Check for an empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Jan 17, 2025
1 parent aad16f3 commit 3aa0c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/panel/CoordinateMousePositionPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ Ext.define('BasiGX.view.panel.CoordinateMousePositionPanel', {
return obj.code == mapCode;
});
me.getViewModel().setData({
srsName: filtered ? filtered[0].name : ''
srsName: !Ext.isEmpty(filtered) ? filtered[0].name : ''
});
}
}
Expand Down

0 comments on commit 3aa0c12

Please sign in to comment.