mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-06 00:01:40 +00:00
fix: breadcrumb all files link
This commit is contained in:
@@ -13,6 +13,7 @@ export const Route = createFileRoute(
|
||||
|
||||
function RouteComponent() {
|
||||
const { directoryId } = Route.useParams()
|
||||
const rootDirectory = useConvexQuery(api.files.fetchRootDirectory)
|
||||
const directory = useConvexQuery(api.files.fetchDirectory, {
|
||||
directoryId,
|
||||
})
|
||||
@@ -20,12 +21,14 @@ function RouteComponent() {
|
||||
directoryId,
|
||||
})
|
||||
|
||||
if (!directory || !directoryContent) {
|
||||
if (!directory || !directoryContent || !rootDirectory) {
|
||||
return <DirectoryPageSkeleton />
|
||||
}
|
||||
|
||||
return (
|
||||
<DirectoryPageContext value={{ directory, directoryContent }}>
|
||||
<DirectoryPageContext
|
||||
value={{ rootDirectory, directory, directoryContent }}
|
||||
>
|
||||
<DirectoryPage />
|
||||
</DirectoryPageContext>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user