From 5b34dc88bd8869a1366287d45061c7c4a0d2bd0a Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Fri, 12 Oct 2018 19:41:55 +0200 Subject: [PATCH] fix: click on logo break ui (#1071) --- src/webui/components/Header/index.js | 3 ++- test/unit/webui/components/__snapshots__/header.spec.js.snap | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/webui/components/Header/index.js b/src/webui/components/Header/index.js index 0969f927c..f0c3728b9 100644 --- a/src/webui/components/Header/index.js +++ b/src/webui/components/Header/index.js @@ -102,8 +102,9 @@ class Header extends Component { } renderLeftSide(): Node { + const { registryUrl } = this.state; return ( - + ); diff --git a/test/unit/webui/components/__snapshots__/header.spec.js.snap b/test/unit/webui/components/__snapshots__/header.spec.js.snap index 9510ad001..2245772a6 100644 --- a/test/unit/webui/components/__snapshots__/header.spec.js.snap +++ b/test/unit/webui/components/__snapshots__/header.spec.js.snap @@ -1,5 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`
component with logged in state should load the component in logged in state 1`] = `"
"`; +exports[`
component with logged in state should load the component in logged in state 1`] = `"
"`; -exports[`
component with logged out state should load the component in logged out state 1`] = `"
"`; +exports[`
component with logged out state should load the component in logged out state 1`] = `"
"`;