fix: update execution old code

This commit is contained in:
Arman committed 2022-10-20 14:53:19 +02:00
1 parent 0e9740ddfa
commit b1008a7412
1 file changed
+1 -4
@@ -39,7 +39,6 @@
let showVariablesValue = [];
let showVariablesDropdown = [];
let timeout: number = null;
let deployment: Models.Deployment = null;
let functionName: string = null;
let permissions: string[] = [];
let arePermsDisabled = true;
@@ -53,7 +52,6 @@
await func.load(functionId);
}
await variableList.load(functionId);
deployment = await func.getDeployment(functionId, $func.deployment);
timeout ??= $func.timeout;
functionName ??= $func.name;
permissions = $func.execute;
@@ -268,8 +266,7 @@
<Button
secondary
on:click={() => {
$execute.selected = deployment;
$execute.show = true;
$execute = $func;
}}>Execute now</Button>
</svelte:fragment>
</CardGrid>