From 0f4eb24a8dbe552d1b3b61481fea37c52c27da9f Mon Sep 17 00:00:00 2001
From: Clemens <cle1000.cb@gmail.com>
Date: Wed, 17 Aug 2016 12:19:04 +0200
Subject: fix viewselector bug

---
 web/src/js/components/ContentView/ViewSelector.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/src/js/components/ContentView/ViewSelector.jsx')

diff --git a/web/src/js/components/ContentView/ViewSelector.jsx b/web/src/js/components/ContentView/ViewSelector.jsx
index 59ec4276..f879dbc5 100644
--- a/web/src/js/components/ContentView/ViewSelector.jsx
+++ b/web/src/js/components/ContentView/ViewSelector.jsx
@@ -7,7 +7,7 @@ import { setContentView } from "../../ducks/ui/flow";
 function ViewItem({ name, setContentView, children }) {
     return (
         <li>
-            <a href="#" onClick={() => setContentView(name)}>
+            <a href="#" onClick={e => {e.preventDefault(); setContentView(name)}}>
                 {children}
             </a>
         </li>
-- 
cgit v1.2.3

