fix(web-admin): persist cleared vehicle/personnel photoUrls on save
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
5bf37f802e
commit
c86eddac75
3 files changed
+3
-3
No files matched your search
@@ -844,7 +844,7 @@ async function handleSubmit() {
|
||||
personnelAffiliation: formData.personnelAffiliation,
|
||||
status: formData.status,
|
||||
remark: formData.remark || undefined,
|
||||
photoUrls: formData.photoUrls || undefined,
|
||||
photoUrls: formData.photoUrls ?? '',
|
||||
certList: certList.value.map(c => ({
|
||||
certId: c.certId,
|
||||
certName: c.certName.trim(),
|
||||
|
||||
@@ -1003,7 +1003,7 @@ async function handleSubmit() {
|
||||
loadCapacity: formData.loadCapacity,
|
||||
vehicleStatus: formData.vehicleStatus,
|
||||
remark: formData.remark,
|
||||
photoUrls: formData.photoUrls || undefined,
|
||||
photoUrls: formData.photoUrls ?? '',
|
||||
personnelList: personnelList.value.map(p => ({
|
||||
personnelId: p.personnelId,
|
||||
personnelName: p.personnelName.trim(),
|
||||
|
||||
@@ -1048,7 +1048,7 @@ async function handleSubmit() {
|
||||
loadCapacity: formData.loadCapacity,
|
||||
vehicleStatus: formData.vehicleStatus,
|
||||
remark: formData.remark,
|
||||
photoUrls: formData.photoUrls || undefined,
|
||||
photoUrls: formData.photoUrls ?? '',
|
||||
personnelList: personnelList.value.map(p => ({
|
||||
personnelId: p.personnelId,
|
||||
personnelName: p.personnelName.trim(),
|
||||
|
||||
Reference in new issue
Block a user