diff --git a/src/api/document.js b/src/api/document.js index 855564933..643e4ddc4 100644 --- a/src/api/document.js +++ b/src/api/document.js @@ -163,12 +163,12 @@ export async function changeAccess(ids, access) { export async function changeRevisionControl(ids, revision_control) { // Enable or disable revision control on specified documents - console.log("changeRevisionControl", ids, revision_control); await session.patch( apiUrl(`documents/`), - ids.map((id) => { - id, revision_control; - }), + ids.map((id) => ({ + id, + revision_control, + })), ); }