onSearchModalReturn( returnValue ) {
		const { setAttributes } = this.props;

		if ( returnValue != null ) {
			setAttributes( { objectID: returnValue } );
			this.fetchFieldData( returnValue );
		}
	}
/**
	 * Callback function for search modal. When an object is found, set the
	 * objectID attribute and fetch the data for that object from the REST API.
	 *
	 * @param {number} returnValue WordPress post_of found object.
	 */
Callback function for search modal. When an object is found, set the
objectID attribute and fetch the data for that object from the REST API.

@param {number} returnValue WordPress post_of found object.
Callback function for search modal . When an object is found set the objectID attribute and fetch the data for that object from the REST API . @param { number } returnValue WordPress post_of found object .
onSearchModalReturn( returnValue ) {
		const { setAttributes } = this.props;
		if ( returnValue != null ) {
			setAttributes( { objectID: returnValue } );
			this.fetchFieldData( returnValue );
		}
	}
onSearchModalReturn ( returnValue ) { const { setAttributes } = this . props ; if ( returnValue != null ) { setAttributes ( { objectID : returnValue } ) ; this . fetchFieldData ( returnValue ) ; } }
Callback function for search modal.
Callback function for search modal .