From 9825506ab72870d4fce91ede03e77b3bd75c2185 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Fri, 7 Feb 2025 10:54:08 +0100 Subject: [PATCH] Fix JSON-Editor (#2121) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rögl-Brunner Michel --- frontend/src/app/json-editor/_components/InstallMethod.tsx | 4 ++-- frontend/src/app/json-editor/page.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/json-editor/_components/InstallMethod.tsx b/frontend/src/app/json-editor/_components/InstallMethod.tsx index 792ec403..8a597c5d 100644 --- a/frontend/src/app/json-editor/_components/InstallMethod.tsx +++ b/frontend/src/app/json-editor/_components/InstallMethod.tsx @@ -64,8 +64,8 @@ function InstallMethod({ if (key === "type") { updatedMethod.script = value === "alpine" - ? `/${prev.type}/alpine-${prev.slug}.sh` - : `/${prev.type}/${prev.slug}.sh`; + ? `${prev.type}/alpine-${prev.slug}.sh` + : `${prev.type}/${prev.slug}.sh`; // Set OS to Alpine and reset version if type is alpine if (value === "alpine") { diff --git a/frontend/src/app/json-editor/page.tsx b/frontend/src/app/json-editor/page.tsx index ea581742..4e161557 100644 --- a/frontend/src/app/json-editor/page.tsx +++ b/frontend/src/app/json-editor/page.tsx @@ -76,8 +76,8 @@ export default function JSONGenerator() { ...method, script: method.type === "alpine" - ? `/${updated.type}/alpine-${updated.slug}.sh` - : `/${updated.type}/${updated.slug}.sh`, + ? `${updated.type}/alpine-${updated.slug}.sh` + : `${updated.type}/${updated.slug}.sh`, })); }