mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-22 03:05:19 -04:00
fix: remove explicit typing
Apparently this is not need anymore and the linter does not like it. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
f35d00806e
commit
cf51c7572a
4 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@ export const remoteCursorStateField = StateField.define<RemoteCursor[]>({
|
|||
},
|
||||
update(currentValue: RemoteCursor[], transaction: Transaction): RemoteCursor[] {
|
||||
return Optional.ofNullable(transaction.effects.find((effect) => effect.is(remoteCursorUpdateEffect)))
|
||||
.map((remoteCursor) => remoteCursor.value as RemoteCursor[])
|
||||
.map((remoteCursor) => remoteCursor.value)
|
||||
.orElse(currentValue)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue