Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 7, 2024. It is now read-only.

Conversation

@kernelwhisperer
Copy link
Contributor

What changed?

Fixed bug 161 and it's related sentry issues.

The problem was how we called the loadData function, if it's not wrapped under an arrow function, this is evaluated to undefined.

Also fixed the refreshing: because the button is by default of type submit it caused the form to be submitted and the window to be reloaded.


_handelOnSubit (event) {

.then(() => this.props.informationStore.loadData())
Copy link
Member

@koalalorenzo koalalorenzo Jun 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this line is correct? why not:

.then(this.props.informationStore.loadData)

@kernelwhisperer kernelwhisperer merged commit d08e9ba into master Jun 8, 2018
@kernelwhisperer kernelwhisperer deleted the bugfix/161-cannot-set-peers-of-undefined branch June 19, 2018 08:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants