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

fix(Feed|CardGroup|ItemGroup|Search): change key checks from falsy to nullish semantics #4112

Merged
merged 2 commits into from
Jan 19, 2021

Conversation

noinkling
Copy link
Contributor

@noinkling noinkling commented Nov 16, 2020

Fixes #4111.

The nullish coalescing operator has been available in @babel/preset-env since v7.8, so it should be safe to use (build/tests passed).

@noinkling noinkling changed the title fix: change key checks from falsy to non-nullish fix: change key checks from falsy to nullish semantics Nov 16, 2020
Notably allows a key of `0` to be specified.
@codecov-io
Copy link

codecov-io commented Nov 16, 2020

Codecov Report

Merging #4112 (dbd793a) into master (ad261dd) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4112   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files         180      180           
  Lines        3241     3241           
=======================================
  Hits         3233     3233           
  Misses          8        8           
Impacted Files Coverage Δ
src/modules/Search/Search.js 99.55% <ø> (ø)
src/views/Card/CardGroup.js 100.00% <100.00%> (ø)
src/views/Feed/Feed.js 100.00% <100.00%> (ø)
src/views/Item/ItemGroup.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ad261dd...dbd793a. Read the comment docs.

@layershifter layershifter changed the title fix: change key checks from falsy to nullish semantics fix(Feed|CardGroup|ItemGroup|Search): change key checks from falsy to nullish semantics Jan 19, 2021
@layershifter
Copy link
Member

Before

image

After

image


Thanks for fixing this 👍

@layershifter layershifter merged commit cb4b05e into Semantic-Org:master Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 or other falsy but non-nullish values being ignored for certain key properties
3 participants