Toggling any module ON on Jetpack settings results in React warning #40086
Labels
Admin Page
React-powered dashboard under the Jetpack menu
[Platform] Atomic
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Pri] Normal
[Status] Priority Review Triggered
The guild in charge of triage has been notified of this issue in Slack
Triaged
[Type] Bug
When a feature is broken and / or not performing as intended
Impacted plugin
Jetpack
Quick summary
When a Jetpack module is OFF and you try to turn it ON on Jetpack settings page, it results in the warning:
Steps to reproduce
/wp-admin/admin.php?page=jetpack#/discussion
A clear and concise description of what you expected to happen.
There should be no warning.
What actually happened
A warning is shown in browser console
Impact
All
Available workarounds?
No and the platform is unusable
If the above answer is "Yes...", outline the workaround.
No response
Platform (Simple and/or Atomic)
Self-hosted, Atomic
Logs or notes
The bug seems to have been there for six years and the source of that bug is the OR (
||
) operator here. It should instead be a null coalescing operator.jetpack/projects/plugins/jetpack/_inc/client/components/module-toggle/index.jsx
Line 99 in 5e41cdf
The text was updated successfully, but these errors were encountered: