8000 fix(overview): add optional chaining to prevent potential runtime errors in includes function by simonguo · Pull Request #4304 · rsuite/rsuite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(overview): add optional chaining to prevent potential runtime errors in includes function #4304

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

Merged
merged 1 commit into from
May 29, 2025

Conversation

simonguo
Copy link
Member

This pull request introduces a small but important change to improve the robustness of the includes function in docs/pages/components/overview/index.tsx. The change adds optional chaining to handle potential null or undefined values for both str and keyword.

Copy link
codesandbox bot commented May 29, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@simonguo simonguo merged commit 4a36956 into next May 29, 2025
9 of 14 checks passed
@simonguo simonguo deleted the fix/safe-string-includes branch May 29, 2025 10:29
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
codecov bot commented May 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.29%. Comparing base (8227750) to head (03944f1).
Report is 1 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #4304      +/-   ##
==========================================
- Coverage   94.30%   94.29%   -0.02%     
==========================================
  Files         548      546       -2     
  Lines       13396    13390       -6     
  Branches     3985     3985              
==========================================
- Hits        12633    12626       -7     
  Misses        695      695              
- Partials       68       69       +1     
Flag Coverage Δ
chromium 94.29% <ø> (-0.02%) ⬇️
firefox 94.29% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant
0