Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
25d779c838
commit
f52822022e
@@ -1255,7 +1255,7 @@ function ImportPage() {
|
||||
let caseId: string | null = (row.case_id as string | null) ?? null;
|
||||
const caseExt = row._caseext ? String(row._caseext).trim() : null;
|
||||
const caseNum = row._casenum ? String(row._casenum).trim() : null;
|
||||
if (!caseId && (caseExt || caseNum)) {
|
||||
if (!caseId && clientId && (caseExt || caseNum)) {
|
||||
const titleGuess = caseNum || caseExt || "Imported case";
|
||||
const numberGuess = caseNum || caseExt || `IMPORTED-${Date.now()}-${Math.floor(Math.random() * 10000)}`;
|
||||
caseId = await ensureArchivedCase(clientId, titleGuess, numberGuess, caseExt);
|
||||
|
||||
Reference in New Issue
Block a user