-
Notifications
You must be signed in to change notification settings - Fork 555
Closed
Labels
Description
Bug Report
Problematic behavior
When I click the "Version history" button, it opens the version history modal, but the API shows that it doesn't pass the version_id parameter. I found where the code is defined; maybe the pageParam caused this problem?
const getDocVersions = async ({
versionId,
docId,
}: DocVersionsAPIParams): Promise<VersionsResponse> => {
const url = `documents/${docId}/versions/?version_id=${versionId}`;
const response = await fetchAPI(url);
if (!response.ok) {
throw new APIError(
'Failed to get the doc versions',
await errorCauses(response),
);
}
return response.json() as Promise<VersionsResponse>;
};
Environment
- Docs version: I just deployed last night.
- Instance url:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done