Speed up lead board load and polish lead detail/list UX.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -181,7 +181,9 @@ export class LeadsImportService {
|
||||
const job = await this.prisma.leadImportJob.findUnique({ where: { id } });
|
||||
if (!job) return;
|
||||
|
||||
const stages = await this.stages.list(job.organizationId);
|
||||
const stages = await this.stages.list(job.organizationId, {
|
||||
withLeadCounts: false,
|
||||
});
|
||||
const defaultStageId = stages[0]?.id;
|
||||
if (!defaultStageId) {
|
||||
await this.prisma.leadImportJob.update({
|
||||
|
||||
Reference in New Issue
Block a user