Skip to content

Commit

Permalink
[bug] For c121305
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Nov 12, 2024
1 parent c121305 commit 570c27d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DocService/sources/DocsCoServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 570c27d

Please sign in to comment.