mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-07-17 08:30:54 -05:00
Fix an error exporting custom cards without an image
This commit is contained in:
parent
242ff60a9d
commit
5296e19e86
|
|
@ -440,7 +440,7 @@ function deckExportJsonReplacer(key: string, value: any) {
|
|||
return value ?? undefined; // Omit null values.
|
||||
case 'imageUrl':
|
||||
// Custom cards store image data here, so include it if it is a data URI.
|
||||
return (<string> value).startsWith('data:') ? value : undefined;
|
||||
return value && (<string> value).startsWith('data:') ? value : undefined;
|
||||
default:
|
||||
return value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user