Skip to content

Commit

Permalink
Fix CaaS Tags traversal starting point (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai authored Feb 18, 2025
1 parent 54b722b commit 7395cdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ecc/components/cmc/cmc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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];
}
});
Expand Down

0 comments on commit 7395cdb

Please sign in to comment.