|
@@ -29,7 +29,7 @@ const SelectGroupSearch: React.FC<Props> = ({ type, onSearch }) => {
|
|
|
let params: any = []
|
|
|
Object.keys(values).forEach(key => {
|
|
|
let value = values[key]
|
|
|
- if (['accountIds', 'adgroupIds', 'dynamicCreativeIds', 'tencentMaterialId', 'descriptionList'].includes(key) && value) {
|
|
|
+ if (['accountIds', 'adgroupIds', 'dynamicCreativeIds', 'tencentMaterialId', 'descriptionList'].includes(key) && value !== undefined && value !== null) {
|
|
|
let value1 = value.replace(/[,,\s]/g, ',')
|
|
|
params[key] = value1.split(',').filter((a: any) => a)
|
|
|
} else if ('uploadTime' === key && value?.length === 2) {
|