Fix build
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
define('helpTooltip', ['mailpoet', 'react', 'react-dom', 'help-tooltip.jsx'],
|
||||
function (MailPoet, React, ReactDOM, TooltipComponent) {
|
||||
function (mp, React, ReactDOM, TooltipComponent) {
|
||||
'use strict';
|
||||
var MailPoet = mp;
|
||||
|
||||
MailPoet.helpTooltip = {
|
||||
show: function (domContainerNode, opts) {
|
||||
|
@@ -273,10 +273,11 @@ define(
|
||||
&& this.state.item.queue
|
||||
&& this.state.item.queue.status == 'paused';
|
||||
const fields = this.state.fields.map((field) => {
|
||||
const newField = field;
|
||||
if (field.name == 'segments' || field.name == 'options') {
|
||||
field.disabled = isPaused;
|
||||
newField.disabled = isPaused;
|
||||
}
|
||||
return field;
|
||||
return newField;
|
||||
});
|
||||
return (
|
||||
<div>
|
||||
|
Reference in New Issue
Block a user