[MNT-24098] fixes for pdf with HTTP (#9155)

* fixes for pdf with https

* [ci:force] cleanup code

* [ci:force] add missing types

* reduce duplicated code
This commit is contained in:
Denys Vuika
2023-12-12 15:45:46 +00:00
committed by GitHub
parent 468c32691d
commit bed9e4b1f8
2 changed files with 32 additions and 25 deletions

View File

@@ -186,7 +186,11 @@ export class NodesApiService {
}
}
return this.createNodeInsideRoot(name || window.crypto.randomUUID(), nodeType, properties, path);
return this.createNodeInsideRoot(name || this.randomNodeName(), nodeType, properties, path);
}
private randomNodeName(): string {
return `node_${Date.now()}`;
}
/**