From 3a690d8084ef687bffcb7912752c4d55a79bb977 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 20 Oct 2016 21:30:12 +1300 Subject: [PATCH] Moved promise polyfill into boot logic It's not specific to one single component --- admin/client/src/boot/index.js | 3 +++ .../src/containers/FormBuilderLoader/FormBuilderLoader.js | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/client/src/boot/index.js b/admin/client/src/boot/index.js index 50f54f143..9e3c9f630 100644 --- a/admin/client/src/boot/index.js +++ b/admin/client/src/boot/index.js @@ -17,6 +17,9 @@ import bootInjector from 'boot/BootInjector'; // eslint-disable-next-line no-unused-vars import CampaignAdmin from 'containers/CampaignAdmin/controller'; +import es6promise from 'es6-promise'; +es6promise.polyfill(); + function appBoot() { reducerRegister.add('config', ConfigReducer); reducerRegister.add('form', ReduxFormReducer); diff --git a/admin/client/src/containers/FormBuilderLoader/FormBuilderLoader.js b/admin/client/src/containers/FormBuilderLoader/FormBuilderLoader.js index a3ba92825..043781d42 100644 --- a/admin/client/src/containers/FormBuilderLoader/FormBuilderLoader.js +++ b/admin/client/src/containers/FormBuilderLoader/FormBuilderLoader.js @@ -7,9 +7,6 @@ import * as schemaActions from 'state/schema/SchemaActions'; import Form from 'components/Form/Form'; import FormBuilder, { basePropTypes, schemaPropType } from 'components/FormBuilder/FormBuilder'; -import es6promise from 'es6-promise'; -es6promise.polyfill(); - class FormBuilderLoader extends Component { constructor(props) {