-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: Active toggle now reflects current active status #35698
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
Conversation
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 3f04fb7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 36 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #35698 +/- ##
===========================================
+ Coverage 60.98% 61.00% +0.01%
===========================================
Files 2956 2956
Lines 70539 70539
Branches 16174 16174
===========================================
+ Hits 43017 43029 +12
+ Misses 24571 24561 -10
+ Partials 2951 2949 -2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
aleksandernsilva
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and toggle is working as expected after the fix. Also tests are covering the expected behavior and failing without the fix.
Just take a look at the following:
- Test clean up
- Add a changeset to this PR
- If possible reference the PR that introduced this issue, it will help us during root cause analysis.
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
apps/meteor/client/views/omnichannel/businessHours/EditBusinessHours.tsx
Show resolved
Hide resolved
Co-authored-by: Aleksander Nicacio da Silva <aleksander.silva@rocket.chat>
Proposed changes (including videos or screenshots)
This PR fixes an issue where the toggle switch for business hours didn't reflect the current status when BH was disabled, making the user unable to reactivate the BH.
Issue(s)
CTZ-34
Steps to test or reproduce
Further comments
This pull request addresses a bug in the Rocket.Chat repository by updating the
EditBusinessHours.tsxfile within theapps/meteor/client/views/omnichannel/businessHoursdirectory. The change involves replacing a logical OR (||) with a nullish coalescing operator (??) for the initialization of the 'active' property. This modification enhances type safety and ensures proper handling of falsy values, allowing the active toggle to accurately reflect the current active status. The changes are being merged from thebugfix/CTZ-34branch into thedevelopbranch.