|
@@ -39,6 +39,12 @@ export type SectionProps = {
|
|
startTimestampMs: number;
|
|
startTimestampMs: number;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+const config = {
|
|
|
|
+ isString: (v: any) => {
|
|
|
|
+ return typeof v === 'string';
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
const UNKNOWN_STATUS = 'unknown';
|
|
const UNKNOWN_STATUS = 'unknown';
|
|
|
|
|
|
export function GeneralSection({item, startTimestampMs}: SectionProps) {
|
|
export function GeneralSection({item, startTimestampMs}: SectionProps) {
|
|
@@ -183,6 +189,7 @@ export function QueryParamsSection({item}: SectionProps) {
|
|
showCopyButton
|
|
showCopyButton
|
|
forceDefaultExpand
|
|
forceDefaultExpand
|
|
maxDefaultDepth={3}
|
|
maxDefaultDepth={3}
|
|
|
|
+ config={config}
|
|
/>
|
|
/>
|
|
</Indent>
|
|
</Indent>
|
|
</SectionItem>
|
|
</SectionItem>
|
|
@@ -218,6 +225,7 @@ export function RequestPayloadSection({item}: SectionProps) {
|
|
forceDefaultExpand
|
|
forceDefaultExpand
|
|
maxDefaultDepth={2}
|
|
maxDefaultDepth={2}
|
|
showCopyButton
|
|
showCopyButton
|
|
|
|
+ config={config}
|
|
/>
|
|
/>
|
|
) : (
|
|
) : (
|
|
t('Request body not found.')
|
|
t('Request body not found.')
|
|
@@ -256,6 +264,7 @@ export function ResponsePayloadSection({item}: SectionProps) {
|
|
forceDefaultExpand
|
|
forceDefaultExpand
|
|
maxDefaultDepth={2}
|
|
maxDefaultDepth={2}
|
|
showCopyButton
|
|
showCopyButton
|
|
|
|
+ config={config}
|
|
/>
|
|
/>
|
|
) : (
|
|
) : (
|
|
t('Response body not found.')
|
|
t('Response body not found.')
|