diff --git a/ecc/components/cmc/cmc.js b/ecc/components/cmc/cmc.js index ffb18c29..a6492d4e 100644 --- a/ecc/components/cmc/cmc.js +++ b/ecc/components/cmc/cmc.js @@ -7,8 +7,8 @@ import { getCloud, updateCloud } from '../../scripts/esp-controller.js'; const { LitElement, html, repeat, nothing } = await import(`${LIBS}/deps/lit-all.min.js`); -const traversalBase = '/content/cq:tags/caas/'; -const startingPath = 'events'; +const traversalBase = '/content/cq:tags/caas'; +const startingPath = ''; export default class CloudManagementConsole extends LitElement { static styles = style; @@ -127,7 +127,7 @@ export default class CloudManagementConsole extends LitElement { let currentTag = this.tags; pathArray.forEach((path, i) => { - if (i <= index) { + if (i <= index && path) { currentTag = currentTag.tags[path]; } });