Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
foyarash committed Feb 5, 2025
1 parent 3e12450 commit cf0806c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-admin/src/utils/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ export const formattedFormData = async <M extends ModelName>(
const uploadErrorMessage =
editOptions?.[propertyName]?.handler?.uploadErrorMessage;
try {
if (currentRecord[propertyName]) {
if (currentRecord?.[propertyName]) {
await handleFileDeletion({
fileUris: [currentRecord[propertyName]],
property: propertyName,
Expand Down

0 comments on commit cf0806c

Please sign in to comment.