mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(editor): Properly handle mapping of dragged expression if it contains hyphen (#5703)
This commit is contained in:
@@ -6,7 +6,7 @@ export function generatePath(root: string, path: Array<string | number>): string
|
||||
return `${accu}[${part}]`;
|
||||
}
|
||||
|
||||
if (part.includes(' ') || part.includes('.')) {
|
||||
if (part.includes('-') || part.includes(' ') || part.includes('.')) {
|
||||
return `${accu}["${part}"]`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user