fix the vorepanel (#16565)

This commit is contained in:
Kashargul
2024-11-04 22:45:30 +01:00
committed by GitHub
parent c316e6513d
commit 5854cf834a
3 changed files with 11 additions and 11 deletions
@@ -36,15 +36,15 @@ export const VoreInsidePanel = (props: {
and you are
</Box>
&nbsp;
<Box color={digestModeToColor[belly_mode]} inline>
{digestModeToPreyMode[belly_mode]}
<Box color={digestModeToColor[belly_mode!]} inline>
{digestModeToPreyMode[belly_mode!]}
</Box>
&nbsp;
<Box color="label">{desc}</Box>
{(contents.length && (
{(contents!.length && (
<Collapsible title="Belly Contents">
<VoreContentsPanel
contents={contents}
contents={contents!}
belly={ref}
show_pictures={show_pictures}
/>
@@ -66,7 +66,7 @@ export const VorePanel = (props) => {
)) ||
''}
</Stack.Item>
<Stack.Item basis={inside?.desc.length > 500 ? '30%' : '20%'}>
<Stack.Item basis={inside?.desc?.length || 0 > 500 ? '30%' : '20%'}>
<VoreInsidePanel inside={inside} show_pictures={show_pictures} />
</Stack.Item>
<Stack.Item>
@@ -25,12 +25,12 @@ export type hostMob = {
export type insideData = {
absorbed: BooleanLike;
belly_name: string;
belly_mode: string;
desc: string;
pred: string;
ref: string;
contents: contentData[];
belly_name?: string;
belly_mode?: string;
desc?: string;
pred?: string;
ref?: string;
contents?: contentData[];
};
export type contentData = {