mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-24 17:23:07 +01:00
Destructure texts iterable (#2764)
This commit is contained in:
parent
f76a00acdc
commit
d21cb09a12
@ -552,7 +552,7 @@ function AfterPlugin(options = {}) {
|
|||||||
|
|
||||||
if (Hotkeys.isExtendBackward(event)) {
|
if (Hotkeys.isExtendBackward(event)) {
|
||||||
const startText = document.getNode(start.path)
|
const startText = document.getNode(start.path)
|
||||||
const prevEntry = document.texts({
|
const [prevEntry] = document.texts({
|
||||||
path: start.path,
|
path: start.path,
|
||||||
direction: 'backward',
|
direction: 'backward',
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user