File tree 1 file changed +3
-1
lines changed
packages/block-library/src/latest-posts
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ import {
54
54
DEFAULT_EXCERPT_LENGTH ,
55
55
} from './constants' ;
56
56
import { useToolsPanelDropdownMenuProps } from '../utils/hooks' ;
57
+ import { useOrderByOptions } from '../query/utils' ;
57
58
58
59
/**
59
60
* Module Constants
@@ -87,7 +88,6 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
87
88
postsToShow,
88
89
order,
89
90
orderBy,
90
- orderByOptions,
91
91
categories,
92
92
selectedAuthor,
93
93
displayFeaturedImage,
@@ -161,6 +161,8 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
161
161
]
162
162
) ;
163
163
164
+ const orderByOptions = useOrderByOptions ( 'post' ) ;
165
+
164
166
// If a user clicks to a link prevent redirection and show a warning.
165
167
const { createWarningNotice } = useDispatch ( noticeStore ) ;
166
168
const showRedirectionPreventedNotice = ( event ) => {
You can’t perform that action at this time.
0 commit comments