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: displayActionSettings.js
import PropTypes from 'prop-types';
[0] Fix | Delete
[1] Fix | Delete
export const DisplayActionSettings = ( props ) => {
[2] Fix | Delete
const values = Object.keys( props.value ).map( ( key ) => {
[3] Fix | Delete
//Only Display these settings
[4] Fix | Delete
const inValues = [ 'label', 'to', 'email_subject' ];
[5] Fix | Delete
if (
[6] Fix | Delete
inValues.includes( key ) &&
[7] Fix | Delete
typeof props.value[ key ] === 'string' &&
[8] Fix | Delete
props.value[ key ].length > 0
[9] Fix | Delete
) {
[10] Fix | Delete
return (
[11] Fix | Delete
<li key={ key }>
[12] Fix | Delete
<b>{ key }</b>: { props.value[ key ] }
[13] Fix | Delete
</li>
[14] Fix | Delete
);
[15] Fix | Delete
}
[16] Fix | Delete
} );
[17] Fix | Delete
[18] Fix | Delete
return <ul>{ values }</ul>;
[19] Fix | Delete
};
[20] Fix | Delete
[21] Fix | Delete
DisplayActionSettings.propTypes = {
[22] Fix | Delete
value: PropTypes.object.isRequired
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function