TabsBar: force rerender
This commit is contained in:
parent
079e269812
commit
447a2561f4
1 changed files with 4 additions and 0 deletions
|
@ -162,6 +162,10 @@ const mapStateToProps = state => {
|
||||||
notificationCount: state.getIn(['notifications', 'unread']),
|
notificationCount: state.getIn(['notifications', 'unread']),
|
||||||
chatsCount: state.get('chats').reduce((acc, curr) => acc + Math.min(curr.get('unread', 0), 1), 0),
|
chatsCount: state.get('chats').reduce((acc, curr) => acc + Math.min(curr.get('unread', 0), 1), 0),
|
||||||
dashboardCount: reportsCount + approvalCount,
|
dashboardCount: reportsCount + approvalCount,
|
||||||
|
|
||||||
|
// HACK: We made things too efficient and now the tabs bar doesn't work right
|
||||||
|
// ¯\_(ツ)_/¯
|
||||||
|
forceRerender: Math.random(),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue