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

@@ -38,7 +38,7 @@ export const useExecutionDebugging = () => {
const applyExecutionData = async (executionId: string): Promise<void> => {
const execution = await workflowsStore.getExecution(executionId);
const workflow = workflowsStore.getCurrentWorkflow();
const workflowObject = workflowsStore.workflowObject;
const workflowNodes = workflowsStore.getNodes();
if (!execution?.data?.resultData) {
@@ -91,7 +91,7 @@ export const useExecutionDebugging = () => {
} else {
await router.push({
name: VIEWS.EXECUTION_PREVIEW,
params: { name: workflow.id, executionId },
params: { name: workflowObject.id, executionId },
});
return;
}
@@ -103,7 +103,7 @@ export const useExecutionDebugging = () => {
// Pin data of all nodes which do not have a parent node
const pinnableNodes = workflowNodes.filter(
(node: INodeUi) => !workflow.getParentNodes(node.name).length,
(node: INodeUi) => !workflowObject.getParentNodes(node.name).length,
);
let pinnings = 0;