Edit ExcelImportFlow
This commit is contained in:
@@ -28,6 +28,7 @@ import {
|
||||
type PhoneContactDraft,
|
||||
} from '@/lib/phone-contacts';
|
||||
import type {
|
||||
ImportContactsResult,
|
||||
LeadDto,
|
||||
LeadImportJobDto,
|
||||
LeadStageDto,
|
||||
@@ -941,8 +942,8 @@ function onExcelImportStart() {
|
||||
error.value = '';
|
||||
}
|
||||
|
||||
function onExcelImportDone(result: Record<string, unknown> | LeadImportJobDto) {
|
||||
const job = result as LeadImportJobDto;
|
||||
function onExcelImportDone(result: ImportContactsResult) {
|
||||
const job = result as unknown as LeadImportJobDto;
|
||||
if (!job?.id) {
|
||||
error.value = 'ورود فایل ناموفق بود.';
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user