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:
DESKTOP-RTLN3BA\$punk 2025-11-30 15:15:27 -08:00
parent ea94c778c9
commit 5587b1270e

View file

@ -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}`,