Skip to content

Commit

Permalink
Restore ...props to fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
nylen authored and youknowriad committed May 24, 2017
1 parent 541373e commit eabaad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/sidebar/post-trash/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import './style.scss';
import { getCurrentPost } from '../../selectors';
import { trashPost } from '../../actions';

function PostTrash( { postId, postType, trashPost } ) {
function PostTrash( { postId, postType, ...props } ) {
if ( ! postId ) {
return null;
}

const onClick = () => trashPost( postId, postType );
const onClick = () => props.trashPost( postId, postType );

return (
<Button className="editor-post-trash" onClick={ onClick }>
Expand Down

0 comments on commit eabaad9

Please sign in to comment.