Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The new fact form should reset properly after fact creation. #678

Merged
merged 2 commits into from
Aug 2, 2016

Conversation

mmcdermott
Copy link
Contributor

Ostensibly this should chain to the actual API call via a promise or something, but this is sufficient for now. Alternatively, if the storage as state bothers you it can be made a class variable that's not part of state instead, that would also work.

@@ -8,6 +8,7 @@ import {getVar} from 'gEngine/facts'
export class FactBookTab extends Component {
state = {
editingFactId: null,
factsAdded: 0,
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be called newFactKey, which is really what it's for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants