File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -218,11 +218,11 @@ export function makeViewerChannel(channel, file) {
218
218
}
219
219
220
220
export function isAppReady ( ) {
221
- return get ( flux . getState ( ) , [ APP_DATA_PATH , 'isReady' ] ) ;
221
+ return flux . getState ( ) ?. [ APP_DATA_PATH ] ?. isReady ;
222
222
}
223
223
224
224
export function getConnectionStatus ( ) {
225
- return get ( flux . getState ( ) , [ APP_DATA_PATH , 'connectionStatus' ] ) ;
225
+ return flux . getState ( ) ?. [ APP_DATA_PATH ] ?. connectionStatus ;
226
226
}
227
227
228
228
export function getSearchInfo ( ) {
@@ -236,11 +236,11 @@ export function getSearchByName(name) {
236
236
}
237
237
238
238
export function getMenu ( ) {
239
- return get ( flux . getState ( ) , [ APP_DATA_PATH , 'menu' ] ) ;
239
+ return flux . getState ( ) ?. [ APP_DATA_PATH ] ?. menu ;
240
240
}
241
241
242
242
export function getAlerts ( ) {
243
- return get ( flux . getState ( ) , [ APP_DATA_PATH , 'alerts' ] , { } ) ;
243
+ return flux . getState ( ) ?. [ APP_DATA_PATH ] ?. alerts || { } ;
244
244
}
245
245
246
246
export const getActiveTarget = function ( ) { return flux . getState ( ) [ APP_DATA_PATH ] . activeTarget ; } ;
You can’t perform that action at this time.
0 commit comments