webpack/containers/Application/index.js in katello-3.8.0.rc1 vs webpack/containers/Application/index.js in katello-3.8.0.rc2
- 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,10 +18,12 @@
componentDidMount() {
this.loadData();
}
loadData() {
- this.props.loadOrganization();
+ if (orgId()) {
+ this.props.loadOrganization();
+ }
}
render() {
return (
<Router>