06/23 Fix inspection layout display and exported PDF file (sent via email)

This commit is contained in:
Nguyen Ngo
2026-06-23 12:12:47 -04:00
parent 47ff9f3aa5
commit 32caf735e8
3 changed files with 52 additions and 24 deletions
@@ -459,7 +459,7 @@ struct ExecuteInspectionView: View {
let existingFormData = inspection.formData
var data: [String: Any] = [:]
for (k, v) in formValues {
if let s = v as? String, s.hasPrefix("local://"),
if v.hasPrefix("local://"),
let saved = existingFormData[k] as? String, saved.hasPrefix("uploads/") {
data[k] = saved
} else {
@@ -532,7 +532,7 @@ struct ExecuteInspectionView: View {
let existingFormData = inspection.formData
var data: [String: Any] = [:]
for (k, v) in formValues {
if let s = v as? String, s.hasPrefix("local://"),
if v.hasPrefix("local://"),
let saved = existingFormData[k] as? String, saved.hasPrefix("uploads/") {
// processPhotoQueue already uploaded this photo keep the server path
data[k] = saved