Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-05-31 18:44:14 +07:00
committed by GitHub
parent 0d6aa799f3
commit 13c655344a
2 changed files with 8 additions and 4 deletions
@@ -688,7 +688,10 @@ async function getNewCollaborators (
if (ops.$push !== undefined) {
for (const key in ops.$push) {
if (mixin.fields.includes(key)) {
const value = (ops.$push as any)[key]
let value = (ops.$push as any)[key]
if (typeof value !== 'string') {
value = value.$each
}
const newCollabs = await getKeyCollaborators(doc, value, key, control)
if (newCollabs !== undefined) {
for (const newCollab of newCollabs) {