fix(editor): Allow mapping onto expression editor with selection range (#4945)

🔥 Remove unneeded guard
This commit is contained in:
Iván Ovejero 2022-12-16 10:06:28 +01:00 committed by GitHub
parent 76a3f13458
commit 6b83972f6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,10 +39,6 @@ export default mixins(expressionManager, workflowHelpers).extend({
},
watch: {
value(newValue) {
const range = this.editor?.state.selection.ranges[0];
if (range !== undefined && range.from !== range.to) return;
try {
this.editor?.dispatch({
changes: {