diff --git a/src/fileStorage/hooks.ts b/src/fileStorage/hooks.ts index 40cb36ac..66e9ed6d 100644 --- a/src/fileStorage/hooks.ts +++ b/src/fileStorage/hooks.ts @@ -23,7 +23,7 @@ export function useFileStorageMetadata(): FileMetadata[] | undefined { */ export function useFileStoragePath(uuid: UUID): string | undefined { const db = useContext(FileStorageContext); - return useLiveQuery(() => db.metadata.get(uuid, (x) => x?.path)); + return useLiveQuery(() => db.metadata.get(uuid, (x) => x?.path), [uuid]); } /**