Skip to content

Commit

Permalink
fix:series not working for remote elements
Browse files Browse the repository at this point in the history
  • Loading branch information
torsten-simon committed Nov 14, 2024
1 parent 740a573 commit 393d9c8
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions Frontend/src/app/common/ui/node-render/node-render.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -671,20 +671,25 @@ export class NodeRenderComponent implements EventListener, OnInit, OnDestroy, Af

private getSequence(onFinish: () => void) {
if (this._node.aspects.indexOf(RestConstants.CCM_ASPECT_IO_CHILDOBJECT) != -1) {
this.nodeApi.getNodeMetadata(this._node.parent.id).subscribe((data) => {
this.sequenceParent = data.node;
this.nodeApi
.getNodeChildobjects(this.sequenceParent.ref.id, this.sequenceParent.ref.repo)
.subscribe((data: NodeList) => {
if (data.nodes.length > 0) {
this.sequence = data;
} else {
this.sequence = null;
}
setTimeout(() => this.setScrollparameters(), 100);
onFinish();
});
});
this.nodeApi
.getNodeMetadata(this._node.parent.id, [RestConstants.ALL], this._node.parent.repo)
.subscribe((data) => {
this.sequenceParent = data.node;
this.nodeApi
.getNodeChildobjects(
this.sequenceParent.ref.id,
this.sequenceParent.ref.repo,
)
.subscribe((data: NodeList) => {
if (data.nodes.length > 0) {
this.sequence = data;
} else {
this.sequence = null;
}
setTimeout(() => this.setScrollparameters(), 100);
onFinish();
});
});
} else {
this.sequenceParent = this._node;
this.nodeApi
Expand Down

0 comments on commit 393d9c8

Please sign in to comment.