2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

Fix rendering bug with company image (#7668)

Fixed rendering bug when switching from a company that has an image and one that hasn't in a related model field due to the number of rendered hooks changes, because Thumbnail is not used as a component here, but a normal function.
This commit is contained in:
Lukas
2024-07-17 00:01:29 +02:00
committed by GitHub
parent c3ce9cd3c2
commit b783f521de

View File

@ -180,7 +180,7 @@ export function RenderInlineModel({
return ( return (
<Group gap="xs" justify="space-between" wrap="nowrap"> <Group gap="xs" justify="space-between" wrap="nowrap">
<Group gap="xs" justify="left" wrap="nowrap"> <Group gap="xs" justify="left" wrap="nowrap">
{image && Thumbnail({ src: image, size: 18 })} {image && <Thumbnail src={image} size={18} />}
{url ? ( {url ? (
<Anchor href={url} onClick={(event: any) => onClick(event)}> <Anchor href={url} onClick={(event: any) => onClick(event)}>
<Text size="sm">{primary}</Text> <Text size="sm">{primary}</Text>