mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
feat: Update Workflow class usage on the Frontend for better performance (no-changelog) (#17680)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user