mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(editor): Don't try to load credentials on the demo route (#9926)
This commit is contained in:
@@ -4470,6 +4470,13 @@ export default defineComponent({
|
||||
await this.credentialsStore.fetchCredentialTypes(true);
|
||||
},
|
||||
async loadCredentialsForWorkflow(): Promise<void> {
|
||||
// In preview mode, we don't have to load the credentials. We actually
|
||||
// can't load them because they depend on the project the workflow is in,
|
||||
// but in preview mode there is no project.
|
||||
if (this.settingsStore.isPreviewMode) {
|
||||
return;
|
||||
}
|
||||
|
||||
const workflow = this.workflowsStore.getWorkflowById(this.currentWorkflow);
|
||||
const workflowId = workflow?.id ?? this.$route.params.name;
|
||||
let options: { workflowId: string } | { projectId: string };
|
||||
|
||||
Reference in New Issue
Block a user