Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async calculateDescendants() {
// Check if the item being added or moved is at the last level of the hierarchy.
// The descendentsCount needs update ony when the last level has a new item or an item is moved
if (this.locationsLevelsLength === this.breadcrumbs.length) {
this.locationList = Loc.calculateDescendantCounts(this.locationList);
}
}
async saveLocationListToDisk() {