webpack/components/NewTemplateSync/components/NewTemplateSyncForm/index.js in foreman_templates-7.0.6 vs webpack/components/NewTemplateSync/components/NewTemplateSyncForm/index.js in foreman_templates-7.0.7

- old
+ new

@@ -1,10 +1,12 @@ import { connect } from 'react-redux'; import { reduxForm } from 'redux-form'; import * as FormActions from 'foremanReact/redux/actions/common/forms'; +import { selectLayout } from 'foremanReact/components/Layout/LayoutSelectors'; + import { NEW_TEMPLATE_SYNC_FORM_NAME } from './NewTemplateSyncFormConstants'; import NewTemplateSyncForm from './NewTemplateSyncForm'; import { selectImportSettings, @@ -30,9 +32,11 @@ return { initialValues: { ...initialFormValues }, importSettings, exportSettings, currentFields, + currentOrganization: selectLayout(state).currentOrganization, + currentLocation: selectLayout(state).currentLocation, }; }; const form = reduxForm({ form: NEW_TEMPLATE_SYNC_FORM_NAME })( NewTemplateSyncForm