1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-13 18:53:59 +02:00

Destructure texts iterable (#2764)

This commit is contained in:
adjourn
2019-05-12 06:29:11 +03:00
committed by Ian Storm Taylor
parent f76a00acdc
commit d21cb09a12

View File

@@ -552,7 +552,7 @@ function AfterPlugin(options = {}) {
if (Hotkeys.isExtendBackward(event)) {
const startText = document.getNode(start.path)
const prevEntry = document.texts({
const [prevEntry] = document.texts({
path: start.path,
direction: 'backward',
})