Fixed a null ref issue when trying to route an element that hasn't been constructed yet.

This commit is contained in:
2025-09-17 11:14:50 -07:00
parent fd68b5c79d
commit d5f082843b

View File

@@ -20,7 +20,7 @@ IgniteTemplate.prototype.route = function (routes, showCallback = null, hideCall
}
//By default hide this route.
this.element.style.setProperty("display", "none", "important");
this.element?.style.setProperty("display", "none", "important");
//Create an update method that will be used to check and see if the route is met.
var update = (event) => {