diff --git a/app/web/src/components/pages/BrowseBody.tsx b/app/web/src/components/pages/BrowseBody.tsx index 1733c3e..741e881 100644 --- a/app/web/src/components/pages/BrowseBody.tsx +++ b/app/web/src/components/pages/BrowseBody.tsx @@ -22,10 +22,7 @@ function BrowseInner(props: { locale: Locale }) { const [path, setPath] = useState("/"); const [crumbs, setCrumbs] = useState([]); - const dir = trpc.media.mountListDir.useQuery( - { mountId, path }, - { enabled: Boolean(mountId) }, - ); + const dir = trpc.media.mountListDir.useQuery({ mountId, path }, { enabled: Boolean(mountId) }); const scan = trpc.media.libraryScan.useMutation(); const ensure = trpc.media.libraryEnsurePath.useMutation(); @@ -107,9 +104,7 @@ function BrowseInner(props: { locale: Locale }) { {t(locale, "browse.scanDone", { count: scan.data.scanned })}

)} - {scan.isError && ( -

{scan.error.message}

- )} + {scan.isError &&

{scan.error.message}

}