refactor(editor): Fix remaining FE type check errors (no-changelog) (#9607)

Co-authored-by: Alex Grozav <alex@grozav.com>
This commit is contained in:
Ricardo Espinoza
2024-06-10 09:23:06 -04:00
committed by GitHub
parent 1e15f73b0d
commit 22bdb0568e
84 changed files with 438 additions and 318 deletions

View File

@@ -2178,7 +2178,11 @@ export default defineComponent({
}
}
return await this.importWorkflowData(workflowData!, 'paste', false);
if (!workflowData) {
return;
}
return await this.importWorkflowData(workflowData, 'paste', false);
}
},
@@ -2205,7 +2209,7 @@ export default defineComponent({
// Imports the given workflow data into the current workflow
async importWorkflowData(
workflowData: IWorkflowToShare,
workflowData: IWorkflowDataUpdate,
source: string,
importTags = true,
): Promise<void> {
@@ -2342,7 +2346,7 @@ export default defineComponent({
}
},
removeUnknownCredentials(workflow: IWorkflowToShare) {
removeUnknownCredentials(workflow: IWorkflowDataUpdate) {
if (!workflow?.nodes) return;
for (const node of workflow.nodes) {