mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Improve error messages around pinned data (#9632)
This commit is contained in:
committed by
GitHub
parent
37531cdb7d
commit
a8bb53f4e3
@@ -1294,9 +1294,15 @@ export default defineComponent({
|
||||
this.clearAllStickyNotifications();
|
||||
|
||||
try {
|
||||
this.pinnedData.setData(clearJsonKey(value) as INodeExecutionData[], 'save-edit');
|
||||
const clearedValue = clearJsonKey(value) as INodeExecutionData[];
|
||||
try {
|
||||
this.pinnedData.setData(clearedValue, 'save-edit');
|
||||
} catch (error) {
|
||||
// setData function already shows toasts on error, so just return here
|
||||
return;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
this.showError(error, this.$locale.baseText('ndv.pinData.error.syntaxError.title'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user