mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-14 20:55:15 +02:00
fix: update API endpoint for fetching editor content
- Changed the API URL in the DashboardBreadcrumb component to include search space ID for fetching editor content, ensuring correct context is used when accessing documents.
This commit is contained in:
parent
ea94c778c9
commit
5587b1270e
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ export function DashboardBreadcrumb() {
|
|||
|
||||
if (token) {
|
||||
fetch(
|
||||
`${process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL}/api/v1/documents/${documentId}/editor-content`,
|
||||
`${process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL}/api/v1/search-spaces/${searchSpaceId}/documents/${documentId}/editor-content`,
|
||||
{
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue