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:
Chi-Hsuan Huang 2022-08-16 08:41:59 +08:00 committed by GitHub
parent d5538505dd
commit 71ffd2c548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -127,8 +127,7 @@ const LayoutSwitchWrapper = ( props ) => {
class _Layout extends Component { class _Layout extends Component {
memoizedLayoutContext = memoize( ( page ) => memoizedLayoutContext = memoize( ( page ) =>
LayoutContextPrototype.getExtendedContext( LayoutContextPrototype.getExtendedContext(
page?.breadcrumbs[ page.breadcrumbs.length - 1 ]?.toLowerCase() || page?.navArgs?.id?.toLowerCase() || 'page'
'page'
) )
); );

View File

@ -0,0 +1,4 @@
Significance: patch
Type: update
Update context prop of wcadmin_tasklist_click/view event