Fix build

This commit is contained in:
Pavel Dohnal
2017-08-22 13:40:11 +02:00
parent d3ff174e9f
commit c12752403f
2 changed files with 5 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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>