Skip to content

Commit

Permalink
Use null in place of filename
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Jul 16, 2024
1 parent 442603d commit d5f56e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/charterafrica/src/payload/collections/Media.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Media = {
afterRead: [
({ doc }) => ({
...doc,
alt: doc.alt || doc.filename,
alt: doc.alt ?? null,
}),
],
},
Expand Down

0 comments on commit d5f56e5

Please sign in to comment.