mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
fix: only fetch types once
This commit is contained in:
parent
6395568d55
commit
18a53c4c77
@ -4,7 +4,8 @@ import MySelect from '../../common/select';
|
||||
|
||||
class FeatureTypeSelectComponent extends Component {
|
||||
componentDidMount() {
|
||||
if (this.props.fetchFeatureTypes) {
|
||||
const { fetchFeatureTypes, types } = this.props;
|
||||
if (types[0].inital && fetchFeatureTypes) {
|
||||
this.props.fetchFeatureTypes();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user