mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 09:13:43 +08:00
Fix back on DrawerRouter
This commit is contained in:
@@ -2,7 +2,7 @@ import { SwitchRouter } from 'react-navigation';
|
||||
import DrawerActions from './DrawerActions';
|
||||
|
||||
function withDefaultValue(obj, key, defaultValue) {
|
||||
if (obj.hasOwnProperty(key)) {
|
||||
if (obj.hasOwnProperty(key) && typeof obj[key] !== 'undefined') {
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user