Skip to content

Commit

Permalink
Reader: remove non-functional property filters from Recent feed (#98508)
Browse files Browse the repository at this point in the history
  • Loading branch information
holdercp authored Jan 17, 2025
1 parent f01a3d8 commit aa56e4d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/reader/recent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Recent = ( { viewToggle }: RecentProps ) => {
const [ view, setView ] = useState< View >( {
type: 'list',
search: '',
fields: [ 'icon', 'post' ],
fields: [],
perPage: 10,
page: 1,
layout: {
Expand Down Expand Up @@ -146,7 +146,7 @@ const Recent = ( { viewToggle }: RecentProps ) => {
enableGlobalSearch: true,
},
],
[ getPostFromItem ]
[ getPostFromItem, handleItemFocus ]
);

const fetchData = useCallback( () => {
Expand Down Expand Up @@ -226,17 +226,17 @@ const Recent = ( { viewToggle }: RecentProps ) => {
<NavigationHeader title={ translate( 'Recent' ) }>{ viewToggle }</NavigationHeader>
</div>
<aside className="recent-feed__list-column-content">
<DataViews
getItemId={ ( item: ReaderPost, index = 0 ) =>
<DataViews< ReaderPost | PaddingItem >
getItemId={ ( item: ReaderPost | PaddingItem, index = 0 ) =>
item.postId?.toString() ?? `item-${ index }`
}
view={ view as View }
view={ view }
fields={ fields }
data={ shownData }
onChangeView={ ( newView: View ) =>
onChangeView={ ( newView ) =>
setView( {
type: newView.type,
fields: newView.fields ?? [],
fields: [],
layout: view.layout,
perPage: newView.perPage,
page: newView.page,
Expand Down

0 comments on commit aa56e4d

Please sign in to comment.