Skip to content

Commit a9fda62

Browse files
Integralobuchtala
authored andcommitted
Improve remove keyword command execution.
1 parent 33235cb commit a9fda62

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)