From 8e48c01e7aada6978e92a6da1d040f3ef0d37945 Mon Sep 17 00:00:00 2001 From: Haishan Date: Fri, 20 Mar 2020 22:19:56 +0800 Subject: feat: remembers group collapse state for https://github.com/haishanh/yacd/issues/480 --- src/components/StateProvider.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/components/StateProvider.js') diff --git a/src/components/StateProvider.js b/src/components/StateProvider.js index 30b1cda..e675f89 100644 --- a/src/components/StateProvider.js +++ b/src/components/StateProvider.js @@ -99,6 +99,8 @@ function bindActions(actions, dispatch) { const action = actions[key]; if (typeof action === 'function') { boundActions[key] = bindAction(action, dispatch); + } else if (typeof action === 'object') { + boundActions[key] = bindActions(action, dispatch); } } return boundActions; -- cgit v1.3.1