mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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:
parent
c3ce9cd3c2
commit
b783f521de
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user