mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Connect up new project viewer role to the FE (#9913)
This commit is contained in:
@@ -128,7 +128,7 @@ async function fetchWorkflow() {
|
||||
toast.showError(error, i18n.baseText('nodeView.showError.openWorkflow.title'));
|
||||
}
|
||||
}
|
||||
workflow.value = workflowsStore.workflow;
|
||||
workflow.value = workflowsStore.getWorkflowById(workflowId.value);
|
||||
}
|
||||
|
||||
async function onAutoRefreshToggle(value: boolean) {
|
||||
@@ -172,7 +172,10 @@ async function onUpdateFilters(newFilters: ExecutionFilterType) {
|
||||
await executionsStore.initialize(workflowId.value);
|
||||
}
|
||||
|
||||
async function onExecutionStop(id: string) {
|
||||
async function onExecutionStop(id?: string) {
|
||||
if (!id) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await executionsStore.stopCurrentExecution(id);
|
||||
|
||||
@@ -190,7 +193,10 @@ async function onExecutionStop(id: string) {
|
||||
}
|
||||
}
|
||||
|
||||
async function onExecutionDelete(id: string) {
|
||||
async function onExecutionDelete(id?: string) {
|
||||
if (!id) {
|
||||
return;
|
||||
}
|
||||
loading.value = true;
|
||||
try {
|
||||
const executionIndex = executions.value.findIndex((e: ExecutionSummary) => e.id === id);
|
||||
|
||||
Reference in New Issue
Block a user