Files
overleaf-cep/services/web/frontend/js/features/file-tree/util/api.ts
Kristina a6ac7bdd41 [web] catch failed requests to project/doc metadata endpoints (#33139)
Unhandled promise rejections from these fire-and-forget calls were
surfacing in Sentry. Add .catch(debugConsole.error) to suppress them.

GitOrigin-RevId: a14cd0a3956a2b551210723ad56e7ec5e354a7a7
2026-05-05 08:05:26 +00:00

8 lines
286 B
TypeScript

import { postJSON } from '../../../infrastructure/fetch-json'
import { debugConsole } from '@/utils/debugging'
export const refreshProjectMetadata = (projectId: string, entityId: string) =>
postJSON(`/project/${projectId}/doc/${entityId}/metadata`).catch(
debugConsole.error
)