diff --git a/library/src/containers/Operations/Operation.tsx b/library/src/containers/Operations/Operation.tsx index 51ad667d..5cc36055 100644 --- a/library/src/containers/Operations/Operation.tsx +++ b/library/src/containers/Operations/Operation.tsx @@ -367,7 +367,7 @@ export const OperationReplyInfo: React.FunctionComponent = props => { showChannel ? 'block' : 'hidden' }`} > - {' '} + {' '} )} @@ -424,18 +424,24 @@ export const OperationReplyInfo: React.FunctionComponent = props => { ); }; -export const OperationChannelInfo: React.FunctionComponent = ({ +export const OperationReplyChannelInfo: React.FunctionComponent = ({ type = PayloadType.SEND, - channelName, - channel, + operation, }) => { + const reply = operation.reply(); + + const channel = reply?.channel(); + + const channelName = channel?.address() ?? ''; + const config = useConfig(); const servers = - typeof channel.servers === 'function' && channel.servers().all(); + typeof channel?.servers === 'function' && channel.servers().all(); const parameters = - channel.parameters() !== undefined + channel?.parameters() !== undefined ? SchemaHelpers.parametersToSchema(channel.parameters()) : undefined; + if (!channel) { return <>; }