Skip to content

Commit

Permalink
Fix incomplete lists in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvicenti committed Dec 2, 2024
1 parent 19ba63b commit ad22475
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/apps/desktop/src/models/documents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ export function useListDirectory(
if (!id) return []
const res = await grpcClient.documents.listDocuments({
account: id.uid,
pageSize: 9001,
})
const docs = res.documents
.map(toPlainMessage)
Expand Down Expand Up @@ -916,6 +917,7 @@ export function useListSite(id?: UnpackedHypermediaId) {
if (!id) return []
const res = await grpcClient.documents.listDocuments({
account: id.uid,
pageSize: 9001,
})
const docs = res.documents
.map(toPlainMessage)
Expand Down Expand Up @@ -1232,6 +1234,7 @@ export function useAccountDocuments(id?: UnpackedHypermediaId) {
if (!account) return {documents: []}
const result = await grpcClient.documents.listDocuments({
account: id?.uid,
pageSize: 9001,
})
const documents = result.documents.map((response) =>
toPlainMessage(response),
Expand Down

0 comments on commit ad22475

Please sign in to comment.