From d5f56e5f879fd3203aecaee28e9b83b0cb151cbe Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Tue, 16 Jul 2024 14:36:27 +0300 Subject: [PATCH] Use null in place of filename --- apps/charterafrica/src/payload/collections/Media.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/charterafrica/src/payload/collections/Media.js b/apps/charterafrica/src/payload/collections/Media.js index 3082fee03..ed475bd0e 100644 --- a/apps/charterafrica/src/payload/collections/Media.js +++ b/apps/charterafrica/src/payload/collections/Media.js @@ -23,7 +23,7 @@ const Media = { afterRead: [ ({ doc }) => ({ ...doc, - alt: doc.alt || doc.filename, + alt: doc.alt ?? null, }), ], },