Commit 3b4c788a authored by Roman's avatar Roman

BRCD-1678 refactor(InputProcessor) - use fileds selectores for subscriber and...

BRCD-1678 refactor(InputProcessor) - use fileds selectores for subscriber and producsa fields to get it with title
parent 697d388a
......@@ -50,7 +50,13 @@ import { getSettings } from '../../actions/settingsActions';
import { showSuccess, showDanger } from '../../actions/alertsActions';
import { getList, clearList } from '../../actions/listActions';
import { setPageTitle } from '../../actions/guiStateActions/pageActions';
import { usageTypeSelector, usageTypesDataSelector, propertyTypeSelector } from '../../selectors/settingsSelector';
import {
usageTypeSelector,
usageTypesDataSelector,
propertyTypeSelector,
subscriberFieldsSelector,
productFieldsSelector,
} from '../../selectors/settingsSelector';
class InputProcessor extends Component {
......@@ -583,8 +589,8 @@ const mapStateToProps = (state, props) => {
usageTypes: usageTypeSelector(state, props),
propertyTypes: propertyTypeSelector(state, props),
usageTypesData: usageTypesDataSelector(state, props),
subscriberFields: state.settings.getIn(['subscribers', 'subscriber', 'fields'], Immutable.List()),
customRatingFields: state.settings.getIn(['rates', 'fields'], Immutable.List()),
subscriberFields: subscriberFieldsSelector(state, props),
customRatingFields: productFieldsSelector(state, props),
fileType,
action,
template,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment