Skip to content

fix: correct folder list API response parsing#1

Open
0xdaedalus5 wants to merge 1 commit intomagarcia:mainfrom
0xdaedalus5:main
Open

fix: correct folder list API response parsing#1
0xdaedalus5 wants to merge 1 commit intomagarcia:mainfrom
0xdaedalus5:main

Conversation

@0xdaedalus5
Copy link
Copy Markdown

The /v2/get-document-lists endpoint returns { lists: [...] }, not a bare array, causing "documentLists.map is not a function" at runtime.

  • Unwrap { lists: [...] } response in getDocumentLists()
  • Update DocumentList interface to match actual API fields
  • Rename is_favourite to is_favourited, make workspace_id/owner_id optional
  • Add workspace_display_name and display it in folder list/view
  • Use document_count for meeting count in folder view

The /v2/get-document-lists endpoint returns { lists: [...] }, not a bare
array, causing "documentLists.map is not a function" at runtime.

- Unwrap { lists: [...] } response in getDocumentLists()
- Update DocumentList interface to match actual API fields
- Rename is_favourite to is_favourited, make workspace_id/owner_id optional
- Add workspace_display_name and display it in folder list/view
- Use document_count for meeting count in folder view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant