From 6ba9ebc04c23a3ec06fc57ae6cde47dc4a224014 Mon Sep 17 00:00:00 2001 From: Allan Lasser Date: Wed, 13 Dec 2023 14:56:58 -0500 Subject: [PATCH] Fixes changeRevisionControl function --- src/api/document.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, + })), ); }