From 43cacc1a66b1e2322c0252c9d1ca954e893aaef8 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 25 Jul 2022 20:21:16 +0200 Subject: [PATCH] fix(frontend): fork script from hub --- frontend/src/routes/scripts/add.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/routes/scripts/add.svelte b/frontend/src/routes/scripts/add.svelte index d8704f05be..bddb23d54a 100644 --- a/frontend/src/routes/scripts/add.svelte +++ b/frontend/src/routes/scripts/add.svelte @@ -18,8 +18,8 @@ // Default let schema: Schema = emptySchema() - $: templatePath = $page.url.searchParams.get('template') - $: hubPath = $page.url.searchParams.get('hub') + const templatePath = $page.url.searchParams.get('template') + const hubPath = $page.url.searchParams.get('hub') const initialState = $page.url.searchParams.get('state') @@ -59,7 +59,7 @@ async function loadHub(): Promise { if (hubPath) { const template = await getScriptByPath(hubPath) - script.summary = `Fork of ${hubPath}` + script.description = `Fork of ${hubPath}` script.content = template.content script.language = Script.language.DENO sendUserToast(`Code has been loaded from hub script ${hubPath}.`)