mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
fix: TypeError when document.collaboratorIds is null (#12471)
Guard against null collaboratorIds when persisting collaborative updates; the DB column has no default and can be NULL on older rows. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -71,7 +71,7 @@ export default async function documentCollaborativeUpdater({
|
||||
const pud = new Y.PermanentUserData(ydoc);
|
||||
const pudIds = Array.from(pud.clients.values());
|
||||
const collaboratorIds = uniq([
|
||||
...document.collaboratorIds,
|
||||
...(document.collaboratorIds ?? []),
|
||||
...sessionCollaboratorIds,
|
||||
...pudIds,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user