From c5ed99939c553e094355cb8fa6bb74a4e8deefbf Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 14 Oct 2021 14:18:41 +0100 Subject: [PATCH 1/4] Fixes #2998 the templates API call will no longer fail if no internet, will simply return an empty array. --- .../components/start/CreateAppModal.svelte | 1 - .../src/components/start/TemplateList.svelte | 8 ++++++- .../server/src/api/controllers/templates.js | 22 ++++++++++++++----- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/packages/builder/src/components/start/CreateAppModal.svelte b/packages/builder/src/components/start/CreateAppModal.svelte index fae0f80f0d..7c1602a454 100644 --- a/packages/builder/src/components/start/CreateAppModal.svelte +++ b/packages/builder/src/components/start/CreateAppModal.svelte @@ -150,7 +150,6 @@ showCancelButton={false} showCloseIcon={false} > - Select a template below, or start from scratch. { if (!selected) { diff --git a/packages/builder/src/components/start/TemplateList.svelte b/packages/builder/src/components/start/TemplateList.svelte index deddd92880..d8e65062b5 100644 --- a/packages/builder/src/components/start/TemplateList.svelte +++ b/packages/builder/src/components/start/TemplateList.svelte @@ -1,5 +1,5 @@