Skip to content

Commit f4d958f

Browse files
author
unai.esteibar
committed
fix(command): Don't stop working after first opening
1 parent 847648f commit f4d958f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const types = {
88
exports.reduceUI = (state, action) => {
99
switch (action.type) {
1010
case types.TOGGLE:
11-
const hyperdocs = state.hyperdocs === undefined
11+
const hyperdocs = state.hyperdocs === undefined ||
12+
state.hyperdocs.show === undefined
1213
? { show: true }
1314
: !state.hyperdocs.show
1415
return state.set('hyperdocs', {

0 commit comments

Comments
 (0)