Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/ninja-fo.../src/componen...
File: selectScreenData.js
import PropTypes from 'prop-types';
[0] Fix | Delete
[1] Fix | Delete
//Select Data from the WP Form ( Form ID and SUbmission IDs)
[2] Fix | Delete
export const selectScreenData = ( setStateNewValue, props ) => {
[3] Fix | Delete
screenData( setStateNewValue, props );
[4] Fix | Delete
[5] Fix | Delete
const postsFilter = document.getElementById( 'posts-filter' );
[6] Fix | Delete
postsFilter.addEventListener( 'change', ( event ) => {
[7] Fix | Delete
event.stopPropagation();
[8] Fix | Delete
screenData( setStateNewValue, props );
[9] Fix | Delete
} );
[10] Fix | Delete
};
[11] Fix | Delete
[12] Fix | Delete
const screenData = ( setStateNewValue, props ) => {
[13] Fix | Delete
const postsFilter = document.getElementById( 'posts-filter' );
[14] Fix | Delete
//Get IDs of submissions selected and Form ID
[15] Fix | Delete
const allPosts = [];
[16] Fix | Delete
jQuery( postsFilter )
[17] Fix | Delete
.serializeArray()
[18] Fix | Delete
.forEach( ( item ) => {
[19] Fix | Delete
if ( item.name === 'post[]' ) {
[20] Fix | Delete
allPosts.push( item.value );
[21] Fix | Delete
} else if ( item.name === 'form_id' ) {
[22] Fix | Delete
setStateNewValue( "form", props.globalParams.forms[ item.value ] );
[23] Fix | Delete
}
[24] Fix | Delete
} );
[25] Fix | Delete
[26] Fix | Delete
setStateNewValue( "submissionIds", allPosts );
[27] Fix | Delete
};
[28] Fix | Delete
[29] Fix | Delete
selectScreenData.propTypes = {
[30] Fix | Delete
setStateNewValue: PropTypes.func.isRequired,
[31] Fix | Delete
props: PropTypes.object.isRequired
[32] Fix | Delete
}
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function