File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 21
21
</ svg >
22
22
</ a >
23
23
< div class ="dropdown-content " [@openCloseAnimation] ="isOpen ">
24
- < a class ="dropdown-item " href ="# "> Latest(v{{ versions }})</ a >
24
+ < a *ngIf =" linkLatest != true " class ="dropdown-item " href ="# "> Latest(v{{ versions }})</ a >
25
25
< div class ="dropdown-divider "> </ div >
26
26
< a href ="https://docs.nestjs.com/v7/ " target ="_blank "> 7.x </ a >
27
27
< a href ="https://docs.nestjs.com/v6/ " target ="_blank "> 6.x</ a >
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export class VersionsComponent implements OnInit {
23
23
@Input ( ) icon : string ;
24
24
25
25
versions : Versions [ ] ;
26
+ linkLatest : boolean = false ;
26
27
27
28
constructor ( private readonly versionsService : VersionsService ) { }
28
29
@@ -36,6 +37,7 @@ export class VersionsComponent implements OnInit {
36
37
this . versions = data [ 'version' ] ;
37
38
} ,
38
39
( error ) => {
40
+ this . linkLatest = true ;
39
41
throw error ;
40
42
} ,
41
43
) ;
You can’t perform that action at this time.
0 commit comments