fix viewselector bug

This commit is contained in:
Clemens 2016-08-17 12:19:04 +02:00
parent cc838f6c28
commit 0f4eb24a8d

View File

@ -7,7 +7,7 @@ import { setContentView } from "../../ducks/ui/flow";
function ViewItem({ name, setContentView, children }) { function ViewItem({ name, setContentView, children }) {
return ( return (
<li> <li>
<a href="#" onClick={() => setContentView(name)}> <a href="#" onClick={e => {e.preventDefault(); setContentView(name)}}>
{children} {children}
</a> </a>
</li> </li>