qcobjectsnewapp 2.5.9-ts → 2.5.10-ts

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/package.json +4 -4
  2. package/public/js/config.js +19 -19
  3. package/public/js/config.js.map +3 -3
  4. package/public/js/customWidgets.js +18 -18
  5. package/public/js/customWidgets.js.map +3 -3
  6. package/public/js/init.js +35 -35
  7. package/public/js/init.js.map +3 -3
  8. package/public/js/packages/com.qcobjects.installer.js +30 -30
  9. package/public/js/packages/com.qcobjects.installer.js.map +3 -3
  10. package/public/js/packages/com.qcobjects.services.github.js +19 -19
  11. package/public/js/packages/com.qcobjects.services.github.js.map +3 -3
  12. package/public/js/packages/com.qcobjects.services.newapp.js +18 -18
  13. package/public/js/packages/com.qcobjects.services.newapp.js.map +3 -3
  14. package/public/js/packages/org.quickcorp.custom.components.js +22 -22
  15. package/public/js/packages/org.quickcorp.custom.components.js.map +3 -3
  16. package/public/js/packages/org.quickcorp.custom.controllers.js +31 -31
  17. package/public/js/packages/org.quickcorp.custom.controllers.js.map +3 -3
  18. package/public/js/packages/org.quickcorp.custom.effects.js +18 -18
  19. package/public/js/packages/org.quickcorp.custom.effects.js.map +3 -3
  20. package/public/js/packages/org.quickcorp.custom.js +35 -35
  21. package/public/js/packages/org.quickcorp.custom.js.map +3 -3
  22. package/public/js/packages/org.quickcorp.custom.models.js +18 -18
  23. package/public/js/packages/org.quickcorp.custom.models.js.map +3 -3
  24. package/public/js/packages/org.quickcorp.custom.views.js +18 -18
  25. package/public/js/packages/org.quickcorp.custom.views.js.map +3 -3
  26. package/src/js/packages/org.quickcorp.custom.controllers.ts +6 -2
@@ -122,9 +122,13 @@ Package("org.quickcorp.custom.controllers", [
122
122
  }
123
123
 
124
124
  loadInstallerButton() {
125
- const componentRoot = (this.component.shadowed != null)
126
- ? (this.component.shadowRoot as QCObjectsShadowedElement)
125
+ const componentRoot = this.component.shadowed
126
+ ? (this.component.shadowRoot as QCObjectsShadowedElement)
127
127
  : (this.component.body as QCObjectsElement);
128
+ if (typeof componentRoot === "undefined" || componentRoot === null) {
129
+ logger.debug("HeaderController has no component root yet, skipping installer button");
130
+ return;
131
+ }
128
132
  componentRoot.subelements("#installerbutton").map(
129
133
  (element) => {
130
134
  this.installer = New(ClassFactory("Installer"), element);