Skip to content

Commit 254e612

Browse files
committed
fix alert tab undefined
1 parent 20c4a22 commit 254e612

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/Endpoint/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ const EndpointPage: React.FC<EndpointPageProps> = React.memo(
137137
<AlertTab
138138
initAlerts={alerts}
139139
initAlertParams={initAlertParams}
140-
providedSpecString={endpoint.openapiSpec.spec}
141-
providedSpecExtension={endpoint.openapiSpec.extension}
140+
providedSpecString={endpoint.openapiSpec?.spec}
141+
providedSpecExtension={endpoint.openapiSpec?.extension}
142142
/>
143143
</TabPanel>
144144
<TabPanel p="0" h="full">

0 commit comments

Comments
 (0)