Skip to content

Commit ee447fb

Browse files
authored
fix(ui): fix displayed references for refs (#1218)
1 parent 2d363fa commit ee447fb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

springwolf-ui/src/app/components/channels/channel-main/channel-operation.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ <h6>Message Binding</h6>
9696
<div class="width-6-of-12 width-12-of-12-s">
9797
<h6>Headers</h6>
9898
<mat-chip-set>
99-
<a [href]="operation().message.headers.anchorUrl">
99+
<a [href]="headers.anchorUrl">
100100
<mat-chip>
101101
<mat-icon matChipAvatar fontIcon="schema" />
102-
{{ operation().message.headers.title }}
102+
{{ headers.title }}
103103
</mat-chip></a
104104
>
105105
</mat-chip-set>

springwolf-ui/src/app/components/schema/schema.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<!-- ref to other class -->
4646
<span class="type" *ngIf="value.refTitle">
4747
<mat-chip-set>
48-
<a [href]="value.anchorUrl">
48+
<a [href]="value.refAnchorUrl">
4949
<mat-chip>
5050
<mat-icon matChipAvatar fontIcon="schema" />
5151
{{ value.refTitle }}

springwolf-ui/src/app/service/asyncapi/asyncapi-mapper.service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -599,15 +599,15 @@ export class AsyncApiMapperService {
599599
if (property.refName === schema.name) {
600600
schema.usedBy.push({
601601
name: otherSchema.title,
602-
anchorUrl: otherSchema.refAnchorUrl!!,
602+
anchorUrl: otherSchema.anchorUrl,
603603
type: "schema",
604604
});
605605
}
606606
});
607607
if (otherSchema.items?.refName === schema.name) {
608608
schema.usedBy.push({
609609
name: otherSchema.title,
610-
anchorUrl: otherSchema.refAnchorUrl!!,
610+
anchorUrl: otherSchema.anchorUrl,
611611
type: "schema",
612612
});
613613
}

0 commit comments

Comments
 (0)