@@ -104,31 +104,31 @@ export const VersionPage: FunctionComponent<ArtifactVersionPageProps> = () => {
104
104
} ;
105
105
106
106
const showDocumentationTab = ( ) : boolean => {
107
- return artifact ?. type === "OPENAPI" && artifactVersion ?. state !== "DISABLED" ;
107
+ return artifact ?. artifactType === "OPENAPI" && artifactVersion ?. state !== "DISABLED" ;
108
108
} ;
109
109
110
110
const doDownloadVersion = ( ) : void => {
111
111
const content : string = versionContent ;
112
112
113
113
let contentType : string = ContentTypes . APPLICATION_JSON ;
114
114
let fext : string = "json" ;
115
- if ( artifact ?. type === ArtifactTypes . PROTOBUF ) {
115
+ if ( artifact ?. artifactType === ArtifactTypes . PROTOBUF ) {
116
116
contentType = ContentTypes . APPLICATION_PROTOBUF ;
117
117
fext = "proto" ;
118
118
}
119
- if ( artifact ?. type === ArtifactTypes . WSDL ) {
119
+ if ( artifact ?. artifactType === ArtifactTypes . WSDL ) {
120
120
contentType = ContentTypes . APPLICATION_XML ;
121
121
fext = "wsdl" ;
122
122
}
123
- if ( artifact ?. type === ArtifactTypes . XSD ) {
123
+ if ( artifact ?. artifactType === ArtifactTypes . XSD ) {
124
124
contentType = ContentTypes . APPLICATION_XML ;
125
125
fext = "xsd" ;
126
126
}
127
- if ( artifact ?. type === ArtifactTypes . XML ) {
127
+ if ( artifact ?. artifactType === ArtifactTypes . XML ) {
128
128
contentType = ContentTypes . APPLICATION_XML ;
129
129
fext = "xml" ;
130
130
}
131
- if ( artifact ?. type === ArtifactTypes . GRAPHQL ) {
131
+ if ( artifact ?. artifactType === ArtifactTypes . GRAPHQL ) {
132
132
contentType = ContentTypes . APPLICATION_JSON ;
133
133
fext = "graphql" ;
134
134
}
@@ -212,10 +212,10 @@ export const VersionPage: FunctionComponent<ArtifactVersionPageProps> = () => {
212
212
/>
213
213
</ Tab > ,
214
214
< Tab data-testid = "documentation-tab" eventKey = "documentation" title = "Documentation" key = "documentation" className = "documentation-tab" >
215
- < DocumentationTabContent versionContent = { versionContent } artifactType = { artifact ?. type as string } />
215
+ < DocumentationTabContent versionContent = { versionContent } artifactType = { artifact ?. artifactType as string } />
216
216
</ Tab > ,
217
217
< Tab data-testid = "content-tab" eventKey = "content" title = "Content" key = "content" >
218
- < ContentTabContent versionContent = { versionContent } artifactType = { artifact ?. type as string } />
218
+ < ContentTabContent versionContent = { versionContent } artifactType = { artifact ?. artifactType as string } />
219
219
</ Tab > ,
220
220
< Tab data-testid = "references-tab" eventKey = "references" title = "References" key = "references" >
221
221
< ReferencesTabContent version = { artifactVersion as VersionMetaData } />
0 commit comments