From 50fdc2fdbcacc5f60699da5cfa7a505fca60f3e2 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Mon, 6 Mar 2023 14:17:03 +0100 Subject: [PATCH] Fixes #359 --- plugs/core/template.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugs/core/template.ts b/plugs/core/template.ts index 3ec3b5ab..4a6469a8 100644 --- a/plugs/core/template.ts +++ b/plugs/core/template.ts @@ -53,7 +53,8 @@ export async function instantiateTemplateCommand() { try { // Fails if doesn't exist - space.getPageMeta(pageName); + await space.getPageMeta(pageName); + // So, page exists, let's warn if ( !await editor.confirm(