From 8ab06a8201f8a22a6a86bf9331761efea267f0db Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Mon, 20 May 2024 23:38:23 +1000 Subject: [PATCH] update theme format --- src/seqta/ui/themes/shareTheme.ts | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/seqta/ui/themes/shareTheme.ts b/src/seqta/ui/themes/shareTheme.ts index d2ed6e25..0d7b6454 100644 --- a/src/seqta/ui/themes/shareTheme.ts +++ b/src/seqta/ui/themes/shareTheme.ts @@ -50,19 +50,13 @@ const shareTheme = async (themeID: string) => { // Prepare the non-file data for uploading const data = { - name: themeData.name || 'Unnamed Theme', - description: themeData.description || 'No description', - theme: JSON.stringify({ - ...themeWithoutImages, - images: finalImages.map((image) => ({ - id: image.id, - variableName: image.variableName, - data: image.data, - })), - }), - submitted: true, + ...themeWithoutImages, + images: finalImages.map((image) => ({ + id: image.id, + variableName: image.variableName, + data: image.data, + })), coverImage: coverImageBase64, - images: finalImages, }; saveThemeFile(data, themeData.name || 'Unnamed_Theme');