loadContentSourceWithId()

in public/components/reindexController.react.js [47:62]


    loadContentSourceWithId(id, environment) {
        ContentSourceService.getContentSourcesWithId(id).then(response => {
            const contentSources = response.contentSources.reverse();
            this.setState({
                contentSourcesForEnvironments: contentSources
            }, function() {
                contentSources.forEach( contentSource => {
                    if(contentSource.environment === environment) {
                        this.setState({
                            contentSource: contentSource
                        });
                    }
                });
            });
        });
    }