webpack/containers/Application/index.js in katello-3.7.1.1 vs webpack/containers/Application/index.js in katello-3.8.0.rc1
- old
+ new
@@ -1,11 +1,11 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { BrowserRouter as Router } from 'react-router-dom';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
-import { orgId } from '../../services/api';
+
import * as actions from '../../scenes/Organizations/OrganizationActions';
import reducer from '../../scenes/Organizations/OrganizationReducer';
import Routes from './Routes';
import './overrides.scss';
@@ -18,12 +18,10 @@
componentDidMount() {
this.loadData();
}
loadData() {
- if (orgId()) {
- this.props.loadOrganization();
- }
+ this.props.loadOrganization();
}
render() {
return (
<Router>