feat: Update Workflow class usage on the Frontend for better performance (no-changelog) (#17680)

This commit is contained in:
Alex Grozav
2025-08-04 15:04:00 +03:00
committed by GitHub
parent ff8531d544
commit 279dce639a
66 changed files with 659 additions and 660 deletions

View File

@@ -45,8 +45,8 @@ export function useCalloutHelpers() {
const template = getRagStarterWorkflowJson();
const routeTemplateId = route.query.templateId;
const currentWorkflow = workflowsStore.getCurrentWorkflow();
const workflow = workflowsStore.getWorkflowById(currentWorkflow.id);
const workflowObject = workflowsStore.workflowObject;
const workflow = workflowsStore.getWorkflowById(workflowObject.id); // @TODO Check if we actually need workflowObject here
// Hide the RAG starter callout if we're currently on the RAG starter template
if ((routeTemplateId ?? workflow?.meta?.templateId) === template.meta.templateId) {