aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/util/CurrentUserUtils.ts2
-rw-r--r--src/fields/util.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index f6ac363da..144c4b804 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -884,7 +884,7 @@ export class CurrentUserUtils {
(sharedDocs as Doc)["acl-Public"] = Doc.GetProto(sharedDocs as Doc)["acl-Public"] = SharingPermissions.Add;
}
if (sharedDocs instanceof Doc) {
- sharedDocs.userColor = sharedDocs.userColor || "#12121233";
+ sharedDocs.userColor = sharedDocs.userColor || "#121212";
}
doc.mySharedDocs = new PrefetchProxy(sharedDocs);
}
diff --git a/src/fields/util.ts b/src/fields/util.ts
index b6128f5e6..6e72675db 100644
--- a/src/fields/util.ts
+++ b/src/fields/util.ts
@@ -382,8 +382,8 @@ export function updateFunction(target: any, prop: any, value: any, receiver: any
if (!(value instanceof CursorField) && !(value?.some?.((v: any) => v instanceof CursorField))) {
UndoManager.AddEvent(diff?.op === "$addToSet" ?
{
- redo: () => receiver[prop].push(...(newValue as List<Doc>)),
- undo: action(() => (newValue as List<Doc>).forEach(doc => {
+ redo: () => receiver[prop].push(...diff.items),
+ undo: action(() => diff.items.forEach((doc: Doc) => {
const ind = receiver[prop].indexOf(doc);
ind !== -1 && receiver[prop].splice(ind, 1);
}))