From 2cb9c130b7301a1c2684362896202b41ac87be22 Mon Sep 17 00:00:00 2001 From: Youssef Khedher Date: Thu, 4 Nov 2021 10:02:17 +0100 Subject: [PATCH] fix: handle undefined project with default (#486) Co-authored-by: Fredrik Strand Oseberg --- frontend/package.json | 1 + frontend/src/component/application/application-view.jsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 923b210c67..600718b3d7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -29,6 +29,7 @@ "start": "react-scripts start", "start:heroku": "UNLEASH_API=https://unleash.herokuapp.com yarn run start", "start:ea": "UNLEASH_API=https://unleash4.herokuapp.com yarn run start", + "start:demo": "UNLEASH_API=http://unleash.herokuapp.com yarn run start", "test": "react-scripts test", "prepare": "yarn run build", "e2e": "yarn run cypress open --config baseUrl='http://localhost:3000' --env PASSWORD_AUTH=true,AUTH_TOKEN=$AUTH_TOKEN", diff --git a/frontend/src/component/application/application-view.jsx b/frontend/src/component/application/application-view.jsx index db769e2533..247d8346ae 100644 --- a/frontend/src/component/application/application-view.jsx +++ b/frontend/src/component/application/application-view.jsx @@ -98,7 +98,7 @@ function ApplicationView({ key={`toggle_conditional_${name}`} condition={notFound} show={notFoundListItem({ - createUrl: `/projects/${project}/create-toggle?name=${name}`, + createUrl: `/projects/default/create-toggle?name=${name}`, name, permission: CREATE_FEATURE, i,