Skip to content

Commit

Permalink
the editor store action savePost doesn't expect to be passed an eve…
Browse files Browse the repository at this point in the history
…nt object. (#56529)
  • Loading branch information
ramonjd authored Nov 26, 2023
1 parent 4a244f6 commit 3cf3d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/post-saved-state/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default function PostSavedState( {
} )
: undefined
}
onClick={ isDisabled ? undefined : savePost }
onClick={ isDisabled ? undefined : () => savePost() }
variant="tertiary"
icon={ isLargeViewport ? undefined : cloudUpload }
// Make sure the aria-label has always a value, as the default `text` is undefined on small screens.
Expand Down

0 comments on commit 3cf3d19

Please sign in to comment.