This repository was archived by the owner on Jun 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ export class ChannelsComponent implements OnInit {
41
41
}
42
42
43
43
setChannelSelection ( channel : Channel ) : void {
44
- window . location . hash = '#' + channel . anchorIdentifier
44
+ window . location . hash = channel . anchorIdentifier
45
45
}
46
46
setChannelSelectionFromLocation ( ) : void {
47
- const anchor = window . location . hash . substr ( 1 ) ;
47
+ const anchor = window . location . hash ;
48
48
if ( anchor . startsWith ( CHANNEL_ANCHOR_PREFIX ) ) {
49
49
this . selectedChannel = anchor ;
50
50
}
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ export class SchemasComponent implements OnInit {
24
24
}
25
25
26
26
setSchemaSelection ( schema : Schema ) : void {
27
- window . location . hash = '#' + schema . anchorIdentifier
27
+ window . location . hash = schema . anchorIdentifier
28
28
}
29
29
setSchemaSelectionFromLocation ( ) : void {
30
- this . selectedSchema = window . location . hash . substr ( 1 ) ;
30
+ this . selectedSchema = window . location . hash ;
31
31
}
32
32
}
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ export class AsyncApiMapperService {
145
145
const example = schema . example !== undefined ? new Example ( schema . example ) : undefined
146
146
return {
147
147
description : schema . description ,
148
- anchorIdentifier : schemaName ,
148
+ anchorIdentifier : '#' + schemaName ,
149
149
type : schema . type ,
150
150
format : schema . format ,
151
151
enum : schema . enum ,
Original file line number Diff line number Diff line change 1
- export const CHANNEL_ANCHOR_PREFIX = "channel-"
1
+ export const CHANNEL_ANCHOR_PREFIX = "# channel-"
2
2
export interface Channel {
3
3
name : string ;
4
4
anchorIdentifier : string ;
You can’t perform that action at this time.
0 commit comments