@ -24,7 +24,9 @@ import type { IJsonItem } from '../types'
export function useSqlType(model: { [field: string]: any }): IJsonItem[] {
const { t } = useI18n()
const querySpan = computed(() => (model.sqlType === '0' ? 6 : 0))
const emailSpan = computed(() => (model.sendEmail ? 24 : 0))
const emailSpan = computed(() =>
model.sqlType === '0' && model.sendEmail ? 24 : 0
)
const groups = ref([])
const groupsLoading = ref(false)
const SQL_TYPES = [
@ -181,7 +181,7 @@ export function formatParams(data: INodeData): {
taskParams.postStatements = data.postStatements
taskParams.sendEmail = data.sendEmail
taskParams.displayRows = data.displayRows
if (data.sendEmail) {
if (data.sqlType === '0' && data.sendEmail) {
taskParams.title = data.title
taskParams.groupId = data.groupId
}