From 8227a3b00b4e67d4a18f310717d8fb5e0e13a2a9 Mon Sep 17 00:00:00 2001 From: Katalina / stardust Date: Sun, 31 Dec 2017 13:18:15 -0600 Subject: [PATCH] allow app to ready on init failures. --- UI/src/actions/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UI/src/actions/index.js b/UI/src/actions/index.js index ef7d88e..0a767d8 100644 --- a/UI/src/actions/index.js +++ b/UI/src/actions/index.js @@ -22,9 +22,12 @@ export const userInit = async dispatch => { type: Symbol.for('set user'), data: rsp.body }) - + dispatch(fetchServers) } catch (e) { + dispatch({ + type: Symbol.for('app ready') + }) // window.location.href = '/oauth/flow' } } else {