fix: Set '@typescript-eslint/return-await' rule to 'always' for FE (no-changelog) (#8373)
This commit is contained in:
@@ -33,7 +33,7 @@ export const workflowActivate = defineComponent({
|
||||
methods: {
|
||||
async activateCurrentWorkflow(telemetrySource?: string) {
|
||||
const workflowId = this.workflowsStore.workflowId;
|
||||
return this.updateWorkflowActivation(workflowId, true, telemetrySource);
|
||||
return await this.updateWorkflowActivation(workflowId, true, telemetrySource);
|
||||
},
|
||||
async updateWorkflowActivation(
|
||||
workflowId: string | undefined,
|
||||
|
||||
@@ -904,7 +904,7 @@ export const workflowHelpers = defineComponent({
|
||||
const currentWorkflow = id || this.$route.params.name;
|
||||
|
||||
if (!currentWorkflow || ['new', PLACEHOLDER_EMPTY_WORKFLOW_ID].includes(currentWorkflow)) {
|
||||
return this.saveAsNewWorkflow({ name, tags }, redirect);
|
||||
return await this.saveAsNewWorkflow({ name, tags }, redirect);
|
||||
}
|
||||
|
||||
// Workflow exists already so update it
|
||||
@@ -983,7 +983,7 @@ export const workflowHelpers = defineComponent({
|
||||
);
|
||||
|
||||
if (overwrite === MODAL_CONFIRM) {
|
||||
return this.saveCurrentWorkflow({ id, name, tags }, redirect, true);
|
||||
return await this.saveCurrentWorkflow({ id, name, tags }, redirect, true);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user