mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
fix(editor): fix workflow not stopping on clicking stop button (#4382)
* fix(editor): fix workflow not stopping * address comment, fix for unsaved workflows
This commit is contained in:
@@ -260,7 +260,7 @@ export const pushConnection = mixins(
|
||||
this.$titleSet(workflow.name as string, 'ERROR');
|
||||
|
||||
if (
|
||||
runDataExecuted.data.resultData.error!.name === 'ExpressionError' &&
|
||||
runDataExecuted.data.resultData.error?.name === 'ExpressionError' &&
|
||||
(runDataExecuted.data.resultData.error as ExpressionError).context.functionality === 'pairedItem'
|
||||
) {
|
||||
const error = runDataExecuted.data.resultData.error as ExpressionError;
|
||||
|
||||
@@ -129,9 +129,9 @@ export const restApi = Vue.extend({
|
||||
},
|
||||
|
||||
// Returns the execution with the given name
|
||||
getExecution: async (id: string): Promise<IExecutionResponse> => {
|
||||
getExecution: async (id: string): Promise<IExecutionResponse | undefined> => {
|
||||
const response = await self.restApi().makeRestApiRequest('GET', `/executions/${id}`);
|
||||
return unflattenExecutionData(response);
|
||||
return response && unflattenExecutionData(response);
|
||||
},
|
||||
|
||||
// Deletes executions
|
||||
|
||||
Reference in New Issue
Block a user