@@ -41,14 +41,14 @@ const ApplicationDetailsCard: React.FC<{ application: Application }> = ({ applic
41
41
42
42
function getBuildTimestamp ( application : Application ) : string | null {
43
43
if ( application && application . metadata ) {
44
- return application . metadata . annotations [ "app.quarkus.io/build-timestamp" ] ;
44
+ return application . metadata . annotations ?. [ "app.quarkus.io/build-timestamp" ] ;
45
45
}
46
46
return null ;
47
47
}
48
48
49
49
function getApplicationVersion ( application : Application ) : string | null {
50
50
if ( application && application . metadata ) {
51
- return application . metadata . annotations [ "app.kubernetes.io/version" ] ;
51
+ return application . metadata . annotations ?. [ "app.kubernetes.io/version" ] ;
52
52
}
53
53
return null ;
54
54
}
@@ -140,12 +140,12 @@ const ApplicationDetailsCard: React.FC<{ application: Application }> = ({ applic
140
140
< Card >
141
141
< CardTitle > Frameworks</ CardTitle >
142
142
< CardBody >
143
- { application . metadata . annotations [ 'camel/camel-core-version' ] && < TextContent > < strong > Camel: </ strong > { application . metadata . annotations [ 'camel/camel-core-version' ] } </ TextContent > }
144
- { application . metadata . annotations [ 'camel/quarkus-platform' ] && < TextContent > < strong > Quarkus Platform: </ strong > { application . metadata . annotations [ 'camel/quarkus-platform' ] } </ TextContent > }
145
- { application . metadata . annotations [ 'camel/camel-quarkus' ] && < TextContent > < strong > Camel Quarkus: </ strong > { application . metadata . annotations [ 'camel/camel-quarkus' ] } </ TextContent > }
143
+ { application . metadata . annotations ?. [ 'camel/camel-core-version' ] && < TextContent > < strong > Camel: </ strong > { application . metadata . annotations [ 'camel/camel-core-version' ] } </ TextContent > }
144
+ { application . metadata . annotations ?. [ 'camel/quarkus-platform' ] && < TextContent > < strong > Quarkus Platform: </ strong > { application . metadata . annotations [ 'camel/quarkus-platform' ] } </ TextContent > }
145
+ { application . metadata . annotations ?. [ 'camel/camel-quarkus' ] && < TextContent > < strong > Camel Quarkus: </ strong > { application . metadata . annotations [ 'camel/camel-quarkus' ] } </ TextContent > }
146
146
147
- { application . metadata . annotations [ 'camel/camel-spring-boot-version' ] && < TextContent > < strong > Camel Spring Boot: </ strong > { application . metadata . annotations [ 'camel/camel-spring-boot-version' ] } </ TextContent > }
148
- { application . metadata . annotations [ 'camel/spring-boot-version' ] && < TextContent > < strong > Spring Boot: </ strong > { application . metadata . annotations [ 'camel/spring-boot-version' ] } </ TextContent > }
147
+ { application . metadata . annotations ?. [ 'camel/camel-spring-boot-version' ] && < TextContent > < strong > Camel Spring Boot: </ strong > { application . metadata . annotations [ 'camel/camel-spring-boot-version' ] } </ TextContent > }
148
+ { application . metadata . annotations ?. [ 'camel/spring-boot-version' ] && < TextContent > < strong > Spring Boot: </ strong > { application . metadata . annotations [ 'camel/spring-boot-version' ] } </ TextContent > }
149
149
</ CardBody >
150
150
</ Card >
151
151
</ div >
0 commit comments