diff --git a/src/components/ResourceTable.tsx b/src/components/ResourceTable.tsx
index 40e82e6..a4c40b3 100644
--- a/src/components/ResourceTable.tsx
+++ b/src/components/ResourceTable.tsx
@@ -25,28 +25,17 @@ export const ResourcePhoto = ({ resource }: { resource: AuditoryResource }) => {
const blob = new Blob([resource.photo.data], { type: "image/png" });
setBlobSrc(URL.createObjectURL(blob));
- }, []);
+ }, [resource.photo]);
const commonProps = {
width: 512,
height: 512,
};
- if (resource.photo?.data) {
- return (
-
- );
- }
-
return (
diff --git a/src/utils/api.ts b/src/utils/api.ts
index 7bb159f..984777a 100644
--- a/src/utils/api.ts
+++ b/src/utils/api.ts
@@ -20,8 +20,8 @@ const getBaseUrl = () => {
superjson.registerCustom(
{
isApplicable: (v): v is Buffer => v instanceof Buffer,
- serialize: v => [...v],
- deserialize: v => Buffer.from(v)
+ serialize: (v) => [...v],
+ deserialize: (v) => Buffer.from(v),
},
"buffer"
);