mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
fix(editor): Fix mapping with special characters (#5837)
* fix: Fix mapping with special characters * refactor: rename var * test: update more unit tests * test: update mapping test * test: update mapping test
This commit is contained in:
@@ -77,7 +77,9 @@ export default Vue.extend({
|
||||
segment.kind === 'plaintext'
|
||||
? segment.plaintext.length
|
||||
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(segment.resolved as any).toString().length;
|
||||
segment.resolved
|
||||
? (segment.resolved as any).toString().length
|
||||
: 0;
|
||||
|
||||
segment.to = cursor;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user