diff --git a/ui/v2/src/components/Studios/StudioDetails/Studio.tsx b/ui/v2/src/components/Studios/StudioDetails/Studio.tsx index 2f0edd4fb6a..2fcbacfcac1 100644 --- a/ui/v2/src/components/Studios/StudioDetails/Studio.tsx +++ b/ui/v2/src/components/Studios/StudioDetails/Studio.tsx @@ -88,6 +88,10 @@ export const Studio: FunctionComponent = (props: IProps) => { try { if (!isNew) { const result = await updateStudio(); + if (image) { + // Refetch image to bust browser cache + await fetch(`/studio/${result.data.studioUpdate.id}/image`, { cache: "reload" }); + } setStudio(result.data.studioUpdate); } else { const result = await createStudio(); diff --git a/ui/v2/src/components/performers/PerformerDetails/Performer.tsx b/ui/v2/src/components/performers/PerformerDetails/Performer.tsx index 8dc38c27551..0a9dbf5db6c 100644 --- a/ui/v2/src/components/performers/PerformerDetails/Performer.tsx +++ b/ui/v2/src/components/performers/PerformerDetails/Performer.tsx @@ -59,6 +59,10 @@ export const Performer: FunctionComponent = (props: IPerformerP try { if (!isNew) { const result = await updatePerformer({variables: performer as GQL.PerformerUpdateInput}); + if (performer.image) { + // Refetch image to bust browser cache + await fetch(`/performer/${result.data.performerUpdate.id}/image`, { cache: "reload" }); + } setPerformer(result.data.performerUpdate); } else { const result = await createPerformer({variables: performer as GQL.PerformerCreateInput});