committed by
GitHub
parent
3761fbf86f
commit
521dd04d56
@ -50,7 +50,6 @@ export const RecordShowPageWorkflowHeader = ({
|
||||
);
|
||||
|
||||
return deleteOneWorkflowVersion({
|
||||
workflowId: workflowWithCurrentVersion.id,
|
||||
workflowVersionId: workflowWithCurrentVersion.currentVersion.id,
|
||||
});
|
||||
}}
|
||||
@ -69,9 +68,10 @@ export const RecordShowPageWorkflowHeader = ({
|
||||
workflowWithCurrentVersion,
|
||||
);
|
||||
|
||||
return activateWorkflowVersion(
|
||||
workflowWithCurrentVersion.currentVersion.id,
|
||||
);
|
||||
return activateWorkflowVersion({
|
||||
workflowVersionId: workflowWithCurrentVersion.currentVersion.id,
|
||||
workflowId: workflowWithCurrentVersion.id,
|
||||
});
|
||||
}}
|
||||
/>
|
||||
) : workflowWithCurrentVersion?.currentVersion?.status === 'ACTIVE' ? (
|
||||
|
||||
@ -108,7 +108,10 @@ export const RecordShowPageWorkflowVersionHeader = ({
|
||||
Icon={IconPower}
|
||||
disabled={isWaitingForWorkflowVersion}
|
||||
onClick={() => {
|
||||
return activateWorkflowVersion(workflowVersion.id);
|
||||
return activateWorkflowVersion({
|
||||
workflowVersionId: workflowVersion.id,
|
||||
workflowId: workflowVersion.workflowId,
|
||||
});
|
||||
}}
|
||||
/>
|
||||
) : workflowVersion?.status === 'ACTIVE' ? (
|
||||
|
||||
Reference in New Issue
Block a user