From 570c27de95c2cb17776d24bba7ad936e83f14ae9 Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Tue, 12 Nov 2024 18:28:32 +0300 Subject: [PATCH] [bug] For c12130564fd8e86e51df2e18428ec137a9aae7d5 --- DocService/sources/DocsCoServer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DocService/sources/DocsCoServer.js b/DocService/sources/DocsCoServer.js index c57e62c2..ec17b869 100644 --- a/DocService/sources/DocsCoServer.js +++ b/DocService/sources/DocsCoServer.js @@ -4299,8 +4299,8 @@ function* commandHandle(ctx, params, req, output) { break; } case 'drop': { - const users = (typeof params.users === 'string') ? JSON.parse(params.users) : params.users; - if (users && users.length > 0) { + if (params.users) { + const users = (typeof params.users === 'string') ? JSON.parse(params.users) : params.users; yield dropUsersFromDocument(ctx, docId, users); } else { yield dropUsersFromDocument(ctx, docId);