From b783f521defc969e518bba172c0b38c64ed8b560 Mon Sep 17 00:00:00 2001 From: Lukas <76838159+wolflu05@users.noreply.github.com> Date: Wed, 17 Jul 2024 00:01:29 +0200 Subject: [PATCH] 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. --- src/frontend/src/components/render/Instance.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/render/Instance.tsx b/src/frontend/src/components/render/Instance.tsx index 8b1be27c1d..85c50ced5a 100644 --- a/src/frontend/src/components/render/Instance.tsx +++ b/src/frontend/src/components/render/Instance.tsx @@ -180,7 +180,7 @@ export function RenderInlineModel({ return ( - {image && Thumbnail({ src: image, size: 18 })} + {image && } {url ? ( onClick(event)}> {primary}