Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Sep 10, 2024
1 parent cb9ef9a commit 17a1c65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions public/pages/workflow_detail/workflow_inputs/workflow_inputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ export function WorkflowInputs(props: WorkflowInputsProps) {
setIngestProvisioned(hasProvisionedIngestResources(props.workflow));
}, [props.workflow]);

// Utility fn to update the workflow template only. A get workflow API call is subsequently run
// Utility fn to update the workflow UI config only. A get workflow API call is subsequently run
// to fetch the updated state.
async function updateWorkflowTemplate() {
async function updateWorkflowUiConfig() {
setIsRunningSave(true);
const updatedTemplate = {
name: props.workflow?.name,
Expand Down Expand Up @@ -820,7 +820,7 @@ export function WorkflowInputs(props: WorkflowInputsProps) {
}
isLoading={isRunningSave}
onClick={() => {
updateWorkflowTemplate();
updateWorkflowUiConfig();
}}
>
{`Save`}
Expand Down Expand Up @@ -892,7 +892,7 @@ export function WorkflowInputs(props: WorkflowInputsProps) {
}
isLoading={isRunningSave}
onClick={() => {
updateWorkflowTemplate();
updateWorkflowUiConfig();
}}
>
{`Save`}
Expand All @@ -911,7 +911,7 @@ export function WorkflowInputs(props: WorkflowInputsProps) {
validateAndRunQuery();
}}
>
Run query
Build and run query
</EuiSmallButton>
</EuiFlexItem>
</>
Expand Down

0 comments on commit 17a1c65

Please sign in to comment.