Home Screen: Always show the inbox for temporary gutenberg plugin fix. (https://github.com/woocommerce/woocommerce-admin/pull/5416)
This commit is contained in:
parent
fbb3e8efd2
commit
1a94f54837
|
@ -64,13 +64,6 @@ export const Layout = ( {
|
|||
const isTaskListEnabled = taskListHidden === false && ! taskListComplete;
|
||||
const isDashboardShown = ! isTaskListEnabled || ! query.task;
|
||||
|
||||
const isInboxPanelEmpty = ( isEmpty ) => {
|
||||
if ( isBatchUpdating ) {
|
||||
return;
|
||||
}
|
||||
setShowInbox( ! isEmpty );
|
||||
};
|
||||
|
||||
if ( isBatchUpdating && ! showInbox ) {
|
||||
setShowInbox( true );
|
||||
}
|
||||
|
@ -80,7 +73,7 @@ export const Layout = ( {
|
|||
<Fragment>
|
||||
{ showInbox && (
|
||||
<div className="woocommerce-homescreen-column is-inbox">
|
||||
<InboxPanel isPanelEmpty={ isInboxPanelEmpty } />
|
||||
<InboxPanel />
|
||||
</div>
|
||||
) }
|
||||
<div
|
||||
|
|
Loading…
Reference in New Issue