fix(oas31): fix re-rendering of the Webhooks component (#9938)
Refs #9937
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
*/
|
||||
import React from "react"
|
||||
import PropTypes from "prop-types"
|
||||
import { List } from "immutable"
|
||||
|
||||
const Webhooks = ({ specSelectors, getComponent }) => {
|
||||
const operationDTOs = specSelectors.selectWebhooksOperations()
|
||||
@@ -25,7 +26,7 @@ const Webhooks = ({ specSelectors, getComponent }) => {
|
||||
tag="webhooks"
|
||||
method={operationDTO.method}
|
||||
path={pathItemName}
|
||||
specPath={operationDTO.specPath}
|
||||
specPath={List(operationDTO.specPath)}
|
||||
allowTryItOut={false}
|
||||
/>
|
||||
))}
|
||||
|
||||
@@ -42,7 +42,7 @@ export const selectWebhooksOperations = createSelector(
|
||||
operation: Map({ operation }),
|
||||
method,
|
||||
path: pathItemName,
|
||||
specPath: List(["webhooks", pathItemName, method]),
|
||||
specPath: ["webhooks", pathItemName, method],
|
||||
}))
|
||||
|
||||
return allOperations.concat(pathItemOperations)
|
||||
|
||||
Reference in New Issue
Block a user