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