hide inappropriate link field

disable and hide functions expect argument to be an array.
This commit is contained in:
Chris Garrity 2020-04-24 08:01:09 -04:00
parent 750071b7ae
commit 2650c44407

View file

@ -59,8 +59,8 @@ class HelpWidget extends React.Component {
// don't show the Freshdesk button
window.FreshworksWidget('hide', 'launcher');
window.FreshworksWidget('disable', 'ticketForm', 'custom_fields.cf_inappropriate_report_link');
window.FreshworksWidget('hide', 'ticketForm', 'custom_fields.cf_inappropriate_report_link');
window.FreshworksWidget('disable', 'ticketForm', ['custom_fields.cf_inappropriate_report_link']);
window.FreshworksWidget('hide', 'ticketForm', ['custom_fields.cf_inappropriate_report_link']);
// open the popup already on the form if passed Inappropriate content param
this.openPopup(this.props.subject !== '');