Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
user: getPostLockUser(),
postId: getCurrentPostId(),
postLockUtils: getEditorSettings().postLockUtils,
activePostLock: getActivePostLock(),
postType: getPostType( getEditedPostAttribute( 'type' ) ),
};
} ),
withDispatch( ( dispatch ) => {
const { autosave, updatePostLock } = dispatch( 'core/editor' );
return {
autosave,
updatePostLock,
};
} ),
withInstanceId,
withGlobalEvents( {
beforeunload: 'releasePostLock',
} )
)( PostLockedModal );