Improve CMS media uploads and admin styling
This commit is contained in:
@@ -17,5 +17,5 @@ export function mediaUrl(
|
||||
|
||||
export function mediaAlt(value: Media | number | null | undefined): string | undefined {
|
||||
if (!value || typeof value === "number") return undefined;
|
||||
return value.alt;
|
||||
return value.alt ?? undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user