Commit 05769950 authored by Joel's avatar Joel

fix: multi check

parent e094cea0
......@@ -154,7 +154,12 @@ const TextGeneration: FC<IMainProps> = ({
}
// check row format
payloadData = payloadData.filter(item => !item.every(i => i === '')) // remove empty rows in the end
payloadData = payloadData.filter(item => !item.every(i => i === ''))
// after remove empty rows in the end, checked again
if (payloadData.length === 0) {
notify({ type: 'error', message: t('share.generation.errorMsg.atLeastOne') })
return false
}
let errorRowIndex = 0
let requiredVarName = ''
payloadData.forEach((item, index) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment