Skip to content

Commit

Permalink
Move default inside
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Aug 1, 2023
1 parent 52d819e commit 08ae4a0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/editor/src/components/post-pingbacks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import { useDispatch, useSelect } from '@wordpress/data';
import { store as editorStore } from '../../store';

function PostPingbacks() {
const pingStatus =
useSelect(
( select ) =>
select( editorStore ).getEditedPostAttribute( 'ping_status' ),
[]
) ?? 'open';
const pingStatus = useSelect(
( select ) =>
select( editorStore ).getEditedPostAttribute( 'ping_status' ) ??
'open',
[]
);
const { editPost } = useDispatch( editorStore );
const onTogglePingback = () =>
editPost( {
Expand Down

0 comments on commit 08ae4a0

Please sign in to comment.