mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): UI enhancements and fixes for expression inputs (#8996)
This commit is contained in:
@@ -382,7 +382,10 @@ function parseJson(value: string): unknown {
|
||||
try {
|
||||
return JSON.parse(value);
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
if (value.includes("'")) {
|
||||
throw new ExpressionExtensionError("Parsing failed. Check you're using double quotes");
|
||||
}
|
||||
throw new ExpressionExtensionError('Parsing failed');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user