diff --git a/TableturfBattleClient/src/Pages/DeckListPage.ts b/TableturfBattleClient/src/Pages/DeckListPage.ts index 15f88a6..f492b9e 100644 --- a/TableturfBattleClient/src/Pages/DeckListPage.ts +++ b/TableturfBattleClient/src/Pages/DeckListPage.ts @@ -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 ( value).startsWith('data:') ? value : undefined; + return value && ( value).startsWith('data:') ? value : undefined; default: return value; }