use me link of index resource

This commit is contained in:
Maren Süwer
2018-10-11 10:26:54 +02:00
parent 8b7dcc379b
commit ae92842763
5 changed files with 27 additions and 17 deletions

View File

@@ -46,7 +46,6 @@ type Props = {
// dispatcher functions
fetchMe: (link: string) => void,
fetchIndexResources: () => void,
// context props
t: string => string
@@ -54,7 +53,6 @@ type Props = {
class App extends Component<Props> {
componentDidMount() {
//this.props.fetchIndexResources();
if (this.props.meLink) this.props.fetchMe(this.props.meLink);
}
@@ -110,8 +108,7 @@ class App extends Component<Props> {
const mapDispatchToProps = (dispatch: any) => {
return {
fetchMe: (link: string) => dispatch(fetchMe(link)),
fetchIndexResources: () => dispatch(fetchIndexResources())
fetchMe: (link: string) => dispatch(fetchMe(link))
};
};