diff --git a/ui-common/src/components/EntryDetailed/EntryViewer/AutoRepresentation.tsx b/ui-common/src/components/EntryDetailed/EntryViewer/AutoRepresentation.tsx index 4295b5fa5..e5d4f6e66 100644 --- a/ui-common/src/components/EntryDetailed/EntryViewer/AutoRepresentation.tsx +++ b/ui-common/src/components/EntryDetailed/EntryViewer/AutoRepresentation.tsx @@ -32,7 +32,7 @@ export const AutoRepresentation: React.FC = ({ representation, color, opene badge: null }] - if (response) { + if (response && response.length > 0) { arr.push({ tab: 'Response', badge: null @@ -71,7 +71,7 @@ export const AutoRepresentation: React.FC = ({ representation, color, opene {getOpenedTabIndex() === TabsEnum.Request && } - {response && getOpenedTabIndex() === TabsEnum.Response && + {response && response.length > 0 && getOpenedTabIndex() === TabsEnum.Response && } } diff --git a/ui-common/src/components/EntryDetailed/EntryViewer/SectionsRepresentation.tsx b/ui-common/src/components/EntryDetailed/EntryViewer/SectionsRepresentation.tsx index 2ec62f56b..135b0f7e8 100644 --- a/ui-common/src/components/EntryDetailed/EntryViewer/SectionsRepresentation.tsx +++ b/ui-common/src/components/EntryDetailed/EntryViewer/SectionsRepresentation.tsx @@ -28,10 +28,6 @@ const SectionsRepresentation: React.FC = ({ data, color }) => { } } - if (sections.length === 0) { - sections.push(
This request or response has no data.
); - } - return {sections}; }