Fix NPE error

This commit is contained in:
Paulo Gustavo Veiga 2021-12-05 15:20:43 -08:00
parent cd2236eca1
commit 830fbdaebc
2 changed files with 5 additions and 2 deletions

View File

@ -57,6 +57,7 @@
"nodemon": "^2.0.12",
"start-server-and-test": "^1.14.0",
"webpack": "^5.44.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2",
"webpack-merge": "^5.8.0"

View File

@ -34,8 +34,10 @@ class IconPanel extends ToolbarPaneItem {
for (let i = 0; i < ImageIcon.prototype.ICON_FAMILIES.length; i += 1) {
const familyIcons = ImageIcon.prototype.ICON_FAMILIES[i].icons;
for (let j = 0; j < familyIcons.length; j += 1) {
// Separate icons by line ...
let familyContent;
// @TODO: This is a bug, for some reason is working because is a var. This must change to let.
var familyContent;
if ((count % 12) == 0) {
familyContent = $('<div></div>');
content.append(familyContent);