From 6359f3db64be48562ed3fa383b2487507024da1c Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Fri, 23 Jul 2021 16:02:38 +0100 Subject: [PATCH] Default google activated form toggle to true for older configs --- .../builder/src/pages/builder/portal/manage/auth/index.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/builder/src/pages/builder/portal/manage/auth/index.svelte b/packages/builder/src/pages/builder/portal/manage/auth/index.svelte index 70abf7d376..13a5f3e04c 100644 --- a/packages/builder/src/pages/builder/portal/manage/auth/index.svelte +++ b/packages/builder/src/pages/builder/portal/manage/auth/index.svelte @@ -217,6 +217,10 @@ } originalGoogleDoc = cloneDeep(googleDoc) } else { + // default activated to true for older configs + if (googleDoc.config.activated === undefined) { + googleDoc.config.activated = true + } originalGoogleDoc = cloneDeep(googleDoc) providers.google = googleDoc }