mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
unrelated type tweak
This commit is contained in:
parent
480db3f5b6
commit
529eba9676
1 changed files with 7 additions and 2 deletions
|
@ -143,7 +143,12 @@ class Portal {
|
|||
// periodically we'll resync the whole thing to make sure no one diverges
|
||||
// due to a dropped message (server goes down etc).
|
||||
const syncableElements = allElements.reduce(
|
||||
(acc, element: BroadcastedExcalidrawElement, idx, elements) => {
|
||||
(
|
||||
acc: BroadcastedExcalidrawElement[],
|
||||
element: BroadcastedExcalidrawElement,
|
||||
idx,
|
||||
elements,
|
||||
) => {
|
||||
if (
|
||||
(syncAll ||
|
||||
!this.broadcastedElementVersions.has(element.id) ||
|
||||
|
@ -159,7 +164,7 @@ class Portal {
|
|||
}
|
||||
return acc;
|
||||
},
|
||||
[] as BroadcastedExcalidrawElement[],
|
||||
[],
|
||||
);
|
||||
|
||||
const data: SocketUpdateDataSource[typeof updateType] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue