|
@@ -221,10 +221,10 @@ const CreateAd: React.FC = () => {
|
|
|
// 账号对比
|
|
|
useEffect(() => {
|
|
|
if (getAdAccount?.data?.data && accountCreateLogs) {
|
|
|
- if (accountCreateLogs.some(item => !getAdAccount?.data?.data?.find((item1: { id: number, accountId: number }) => item.id === item1.id && item.adAccountId == item1.accountId))) {
|
|
|
+ if (accountCreateLogs.some(item => !getAdAccount?.data?.data?.find((item1: { accountId: number }) => item.adAccountId == item1.accountId))) {
|
|
|
let errorData: any[] = []
|
|
|
let newAccountCreateLogs = accountCreateLogs.filter(item => {
|
|
|
- let data = getAdAccount?.data?.data?.find((item1: { id: number, accountId: number }) => item.id === item1.id && item.adAccountId == item1.accountId)
|
|
|
+ let data = getAdAccount?.data?.data?.find((item1: { accountId: number }) => item.adAccountId == item1.accountId)
|
|
|
if (data) {
|
|
|
return true
|
|
|
} else {
|