Improve visualization for StatusRewrites option of errors middleware
This commit is contained in:
parent
ce1b13f228
commit
fd5796ac39
1 changed files with 6 additions and 0 deletions
|
|
@ -60,6 +60,12 @@ export const RenderUnknownProp = ({ name, prop, removeTitlePrefix }: RenderUnkno
|
|||
switch (childName) {
|
||||
case 'ipStrategy':
|
||||
return wrap(<IpStrategyTable ipStrategy={childProp as IpStrategy} />, title, title)
|
||||
case 'statusRewrites':
|
||||
return wrap(
|
||||
<GenericTable items={Object.entries(childProp).map((x) => `${x[0]} → ${x[1]}`)} />,
|
||||
title,
|
||||
title,
|
||||
)
|
||||
default:
|
||||
return <RenderUnknownProp key={title} name={title} prop={childProp} />
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue