Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
clemiller committed Apr 30, 2024
1 parent 69292cf commit 4f4c514
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nav-app/src/app/tabs/tabs.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,11 @@ export class TabsComponent implements AfterViewInit {
* Create a new layer in the given domain and version
*/
public newLayer(domainVersionID: string, obj: any = undefined): void {
// load domain data
this.dataService.loadDomainData(domainVersionID, true);
// load domain data, if not yet loaded
let domain = this.dataService.getDomain(domainVersionID);
if (!domain.dataLoaded) {
this.dataService.loadDomainData(domainVersionID, true);
}

// find non conflicting name
let name;
Expand Down

0 comments on commit 4f4c514

Please sign in to comment.