[Utopian Dev] Bug Fix for Inline Category, Repo, and Tags not Properly Set
This was a bug fix for an issue raised by Nico in @wehmoen in slack regarding the wrong category displayed for a contribution for review.
Issue
- Inline category, repository, and tags were not properly set when transitioning from one for review contribution to another
Solution
src/components/Story/InlineCategoryEdit.js
- initialized component's
value
instate
to empty string in constructor - added setting of initial value from
props
incomponentWillMount()
- added
componentWillReceiveProps()
to set incoming property value to state
- initialized component's
src/components/Story/InlineRepoEdit.js
- initialized component's
value
instate
to empty string in constructor - added setting of initial value from
props
incomponentWillMount()
- added
componentWillReceiveProps()
to set incoming property value to state - Fixed space indentions
- initialized component's
src/components/Story/InlineTagEdit.js
- added setting of initial value in
componentWillMount()
- added
componentWillReceiveProps()
to set state's tags when a new contribution is loaded
- added setting of initial value in
Posted on Utopian.io - Rewarding Open Source Contributors
Hey @eastmael I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Awesome work @eastmael. Keep it up, thanks for helping out the community.
Thank you @cestlag25. Yes, with God's help we can contribute po sa community we are involved in.
As we were always taught, yes :)
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Thank you.
Nicely fixed that cool work :) that was quick
Thank you @blazing. Writing the fix was quick, but to look for it took time.
such an awesome work you did with great efficiency :)
Thank you @cutiepie
i have found your blog recently.your blog is amazing.technically i love it as iam a computer science graduate.thanks for sharing.
I see you just joined this month. Welcome to Steemit!
That is awesome and quick. Thanks for explaining how you did it. :)
I'll take the 'awesome' but not the 'quick'. Lol.
Well, that was a quick explanation though. Haha.
Thanks for sharing such a usefull content.iam a computer science graduate as it is realated to my subject i love your blog so much.
Glad to have another computer science graduate join the community. It was the course i wanted to take but wasn't able to do so. I took a related course - electronics and communications engineering.
after fix solution worked excellent work @eastmael
Thank you @starboye. Yes, i had to make sure that it worked.
to finding it must to tough for your bro
Well, it wasn't me who found the bug.