fix: consider openByDefault prop when rehydrating drawer state (#9099)

Co-authored-by: Johannes Huber <jh@sekonia.com>
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com>
This commit is contained in:
Sekonia Software Solutions
2020-12-17 15:23:28 +01:00
committed by GitHub
parent c9a5d45324
commit 2ad61a6735

View File

@@ -145,7 +145,7 @@ export default function DrawerRouter({
routeParamList,
});
if (isDrawerOpen(partialState)) {
if (partialState.history ? isDrawerOpen(partialState) : openByDefault) {
state = openDrawer(state);
}