|
|
@@ -96,8 +96,8 @@ const loadCaseInfo = async () => {
|
|
|
const caseInfo = await getCaseInfo(caseId.value!);
|
|
|
if (caseInfo && fromRoute.value == 'fire') {
|
|
|
currentRecord.value = caseInfo;
|
|
|
- currentRecord.value.tmProject.mapUrl = caseInfo.mapUrl || '';
|
|
|
- currentRecord.value.tmProject.latAndLong = caseInfo.latAndLong || '';
|
|
|
+ currentRecord.value.tmProject && currentRecord.value.tmProject.mapUrl = caseInfo.mapUrl || '';
|
|
|
+ currentRecord.value.tmProject && currentRecord.value.tmProject.latAndLong = caseInfo.latAndLong || '';
|
|
|
} else if (fromRoute.value == 'criminal') {
|
|
|
currentRecord.value = caseInfo;
|
|
|
}
|