Skip to content

Commit

Permalink
Revert "Pages: Trash view should default to table layout." (#63481)
Browse files Browse the repository at this point in the history
Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
  • Loading branch information
3 people committed Jul 12, 2024
1 parent d6cea4c commit 6e1869c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function DataViewItem( {
suffix,
} ) {
const {
params: { postType, layout, activeView: previousView },
params: { postType, layout },
} = useLocation();

const iconToUse =
Expand All @@ -41,7 +41,7 @@ export default function DataViewItem( {
}
const linkInfo = useLink( {
postType,
layout: type !== 'list' || previousView === 'trash' ? type : layout,
layout,
activeView,
isCustom: isCustom ? 'true' : undefined,
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ export function useDefaultViews( { postType } ) {
icon: trash,
view: {
...DEFAULT_POST_BASE,
type: LAYOUT_TABLE,
filters: [
{
field: 'status',
Expand Down

0 comments on commit 6e1869c

Please sign in to comment.