[Utopian Dev] Bug Fix for Inline Category, Repo, and Tags not Properly Set

in #utopian-io6 years ago (edited)

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

image.png

Solution

Before Fix
After Fix
bug-inline-repo-tags-category-not-correctly-set.gifbugfix-inline-repo-tags-category-not-correctly-set.gif
  • src/components/Story/InlineCategoryEdit.js
    • initialized component's value in state to empty string in constructor
    • added setting of initial value from props in componentWillMount()
    • added componentWillReceiveProps() to set incoming property value to state

image.png

  • src/components/Story/InlineRepoEdit.js
    • initialized component's value in state to empty string in constructor
    • added setting of initial value from props in componentWillMount()
    • added componentWillReceiveProps() to set incoming property value to state
    • Fixed space indentions

image.png

image.png



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hey @eastmael I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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]

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.

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.032
BTC 64615.49
ETH 3112.63
USDT 1.00
SBD 3.84