Skip to content

Commit

Permalink
Use default value in useMediaUploadSettings (WordPress#68100)
Browse files Browse the repository at this point in the history
Co-authored-by: swissspidy <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: Rishit30G <[email protected]>
Co-authored-by: psrpinto <[email protected]>
  • Loading branch information
5 people authored Dec 18, 2024
1 parent 174e343 commit 61dcbee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useMemo } from '@wordpress/element';
*
* @return {Object} Media upload settings.
*/
function useMediaUploadSettings( settings ) {
function useMediaUploadSettings( settings = {} ) {
return useMemo(
() => ( {
mediaUpload: settings.mediaUpload,
Expand Down

0 comments on commit 61dcbee

Please sign in to comment.