From 2e878fb5ca47f0af896e0f201d1c610f6a21ce02 Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 8 Jun 2022 10:48:04 +0200 Subject: [PATCH] fix spawn page link --- .../components/ServerDashboard/ServerDashboard.jsx | 4 ++-- .../ServerDashboard/ServerDashboard.test.js | 12 ++++++++++++ jsx/src/util/jhapiUtil.js | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/jsx/src/components/ServerDashboard/ServerDashboard.jsx b/jsx/src/components/ServerDashboard/ServerDashboard.jsx index 0fe40992..dce3a067 100644 --- a/jsx/src/components/ServerDashboard/ServerDashboard.jsx +++ b/jsx/src/components/ServerDashboard/ServerDashboard.jsx @@ -30,7 +30,7 @@ const AccessServerButton = ({ url }) => ( ); const ServerDashboard = (props) => { - let base_url = window.base_url; + let base_url = window.base_url || "/"; // sort methods var usernameDesc = (e) => e.sort((a, b) => (a.name > b.name ? 1 : -1)), usernameAsc = (e) => e.sort((a, b) => (a.name < b.name ? 1 : -1)), @@ -277,7 +277,7 @@ const ServerDashboard = (props) => { />