fix: misc issues

This commit is contained in:
Jannat Patel
2024-05-06 16:20:47 +05:30
parent d53123cf07
commit 650f81c22b
4 changed files with 22 additions and 3 deletions

View File

@@ -244,7 +244,7 @@ const newBatch = createResource({
return {
doc: {
doctype: 'LMS Batch',
meta_image: batch.image.file_url,
meta_image: batch.image?.file_url,
...batch,
},
}
@@ -279,7 +279,7 @@ const editBatch = createResource({
doctype: 'LMS Batch',
name: props.batchName,
fieldname: {
meta_image: batch.image.file_url,
meta_image: batch.image?.file_url,
...batch,
},
}