Skip to content

Commit 8e75ea9

Browse files
committed
Improve remove keyword command execution.
1 parent 8c3abdb commit 8e75ea9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/article/shared/RemoveKeywordCommand.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ export default class RemoveKeywordCommand extends Command {
99
const { path, idx } = params
1010
const editorSession = context.editorSession
1111
editorSession.transaction(tx => {
12-
documentHelpers.remove(tx, path, idx)
13-
tx.selection = null
12+
documentHelpers.removeAt(tx, path, idx)
1413
})
1514
}
1615
}

0 commit comments

Comments
 (0)