From 9445e7092b0d15bbf54b2918559c8b3ccb8ac66a Mon Sep 17 00:00:00 2001 From: frikky Date: Sun, 24 Oct 2021 01:23:22 +0200 Subject: [PATCH] Fixed issues with worker --- frontend/src/views/Apps.jsx | 9 +++++++-- frontend/src/views/Workflows.jsx | 2 +- functions/onprem/worker/go.mod | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/Apps.jsx b/frontend/src/views/Apps.jsx index ec694c2b..ad85db41 100644 --- a/frontend/src/views/Apps.jsx +++ b/frontend/src/views/Apps.jsx @@ -370,8 +370,13 @@ const Apps = (props) => { }} /> var newAppname = data.name - newAppname = newAppname.charAt(0).toUpperCase()+newAppname.substring(1) - newAppname = newAppname.replaceAll("_", " ") + if (newAppname === undefined) { + newAppname = "Undefined" + } else { + newAppname = newAppname.charAt(0).toUpperCase()+newAppname.substring(1) + newAppname = newAppname.replaceAll("_", " ") + } + var sharing = "public" if (!data.sharing) { sharing = "private" diff --git a/frontend/src/views/Workflows.jsx b/frontend/src/views/Workflows.jsx index 7bf7df06..c2930ba3 100644 --- a/frontend/src/views/Workflows.jsx +++ b/frontend/src/views/Workflows.jsx @@ -1938,7 +1938,7 @@ const Workflows = (props) => { }} color="primary"> {submitLoading ? - + : "Submit" } diff --git a/functions/onprem/worker/go.mod b/functions/onprem/worker/go.mod index f60fa5a4..197e1404 100644 --- a/functions/onprem/worker/go.mod +++ b/functions/onprem/worker/go.mod @@ -8,6 +8,6 @@ require ( github.com/docker/go-connections v0.4.0 // indirect github.com/gorilla/mux v1.8.0 github.com/patrickmn/go-cache v2.1.0+incompatible - github.com/shuffle/shuffle-shared v0.1.19 + github.com/shuffle/shuffle-shared v0.1.20 go4.org v0.0.0-20201209231011-d4a079459e60 // indirect )