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.../public_h.../clone/wp-conte.../plugins/ninja-fo.../src/componen...
File: selectForms.js
import { SelectControl } from '@wordpress/components';
[0] Fix | Delete
import { __ } from '@wordpress/i18n';
[1] Fix | Delete
import PropTypes from 'prop-types';
[2] Fix | Delete
[3] Fix | Delete
export const SelectForms = ( props ) => {
[4] Fix | Delete
const forms = typeof props.forms !== 'undefined' ? props.forms : {};
[5] Fix | Delete
const options = [];
[6] Fix | Delete
for ( const [ key, value ] of Object.entries( forms ) ) {
[7] Fix | Delete
options.push( {
[8] Fix | Delete
value: value.formID,
[9] Fix | Delete
label: value.formTitle,
[10] Fix | Delete
} );
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
return (
[14] Fix | Delete
<SelectControl
[15] Fix | Delete
style={ { minHeight: '10em' } }
[16] Fix | Delete
hideLabelFromVision="true"
[17] Fix | Delete
label={ __( 'Select Forms', 'ninja-forms' ) }
[18] Fix | Delete
multiple={ true }
[19] Fix | Delete
options={ options }
[20] Fix | Delete
onChange={ ( value ) => props.setForms( value ) }
[21] Fix | Delete
/>
[22] Fix | Delete
);
[23] Fix | Delete
};
[24] Fix | Delete
[25] Fix | Delete
SelectForms.propTypes = {
[26] Fix | Delete
setForms: PropTypes.func.isRequired,
[27] Fix | Delete
forms: PropTypes.object
[28] Fix | Delete
}
[29] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function