script gen post action (#3480)
This commit is contained in:
@@ -52,6 +52,8 @@ function WorkflowRunCode(props?: Props) {
|
||||
cacheKeyValue,
|
||||
workflowPermanentId,
|
||||
pollIntervalMs: !isFinalized ? 3000 : undefined,
|
||||
status: "draft",
|
||||
workflowRunId: workflowRun?.workflow_run_id,
|
||||
});
|
||||
const orderedBlockLabels = getOrderedBlockLabels(workflow);
|
||||
const code = getCode(orderedBlockLabels, blockScripts).join("").trim();
|
||||
@@ -79,7 +81,15 @@ function WorkflowRunCode(props?: Props) {
|
||||
|
||||
useEffect(() => {
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ["block-scripts", workflowPermanentId, cacheKey, cacheKeyValue],
|
||||
queryKey: [
|
||||
"block-scripts",
|
||||
workflowPermanentId,
|
||||
cacheKey,
|
||||
cacheKeyValue,
|
||||
undefined,
|
||||
"draft",
|
||||
workflowRun?.workflow_run_id,
|
||||
],
|
||||
});
|
||||
}, [queryClient, workflowRun, workflowPermanentId, cacheKey, cacheKeyValue]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user