|
@@ -60,7 +60,8 @@ export function getMovableButtons(width: number): Set<string> {
|
60
|
60
|
*/
|
61
|
61
|
export function isToolboxVisible(stateful: Object | Function) {
|
62
|
62
|
const state = toState(stateful);
|
63
|
|
- const { toolbarConfig: { alwaysVisible } } = state['features/base/config'];
|
|
63
|
+ const { toolbarConfig } = state['features/base/config'];
|
|
64
|
+ const { alwaysVisible } = toolbarConfig || {};
|
64
|
65
|
const { enabled, visible } = state['features/toolbox'];
|
65
|
66
|
const participantCount = getParticipantCountWithFake(state);
|
66
|
67
|
const alwaysVisibleFlag = getFeatureFlag(state, TOOLBOX_ALWAYS_VISIBLE, false);
|