From 08ccb954f3ee21ef601eeb07a568e9607d3fd4d1 Mon Sep 17 00:00:00 2001 From: pandeymangg Date: Wed, 28 Feb 2024 14:43:10 +0530 Subject: [PATCH] fix: styling object --- .../data-migration.ts | 6 ------ packages/types/styling.ts | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/database/migrations/20240228045810_adds_styling_object_to_product_model/data-migration.ts b/packages/database/migrations/20240228045810_adds_styling_object_to_product_model/data-migration.ts index a91303bfe1..6404156c71 100644 --- a/packages/database/migrations/20240228045810_adds_styling_object_to_product_model/data-migration.ts +++ b/packages/database/migrations/20240228045810_adds_styling_object_to_product_model/data-migration.ts @@ -26,12 +26,6 @@ async function main() { brandColor: { light: product.brandColor, }, - isDarkModeEnabled: false, - roundness: 8, - cardArrangement: { - linkSurveys: "simple", - inAppSurveys: "simple", - }, ...(product.highlightBorderColor && { highlightBorderColor: { light: product.highlightBorderColor, diff --git a/packages/types/styling.ts b/packages/types/styling.ts index 07e6dd2612..17dfe8f7e5 100644 --- a/packages/types/styling.ts +++ b/packages/types/styling.ts @@ -21,7 +21,7 @@ export const ZStyling = z.object({ inputBorderColor: ZStylingColor.optional(), cardBackgroundColor: ZStylingColor.optional(), highlightBorderColor: ZStylingColor.optional(), - isDarkModeEnabled: z.boolean(), + isDarkModeEnabled: z.boolean().optional(), roundness: z.number().optional(), cardArrangement: ZCardArrangement.optional(), });