1
0
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:
Ivar Conradi Østhus 2020-08-06 11:09:40 +02:00
parent 6395568d55
commit 18a53c4c77

View File

@ -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();
}
}