Update "context" prop of task list click/view event (#34297)
* Update Update context prop of wcadmin_tasklist_/view event * Add changelog
This commit is contained in:
parent
d5538505dd
commit
71ffd2c548
|
@ -127,8 +127,7 @@ const LayoutSwitchWrapper = ( props ) => {
|
|||
class _Layout extends Component {
|
||||
memoizedLayoutContext = memoize( ( page ) =>
|
||||
LayoutContextPrototype.getExtendedContext(
|
||||
page?.breadcrumbs[ page.breadcrumbs.length - 1 ]?.toLowerCase() ||
|
||||
'page'
|
||||
page?.navArgs?.id?.toLowerCase() || 'page'
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: update
|
||||
|
||||
Update context prop of wcadmin_tasklist_click/view event
|
Loading…
Reference in New Issue