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 ckeditor console error #1633

Closed
wants to merge 4 commits into from
Closed

Fix ckeditor console error #1633

wants to merge 4 commits into from

Conversation

ChristopherChudzicki
Copy link
Contributor

@ChristopherChudzicki ChristopherChudzicki commented Dec 23, 2022

Pre-Flight checklist

  • Testing
    • Changes have been manually tested

What are the relevant tickets?

#1632

What's this PR do?

  • Prevents SiteContentForm from loading until its data has been loaded.
  • Removes redux-logger, because it is annoying and you can get the same info from redux dev tools

How should this be manually tested?

  1. Navigate to the page listing
  2. Open any page for editing
  3. Check that no error is logged in console
  4. Check that editing works as expected.

@codecov-commenter
Copy link

codecov-commenter commented Dec 23, 2022

Codecov Report

Merging #1633 (fb9b459) into master (7507182) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1633      +/-   ##
==========================================
- Coverage   89.14%   89.13%   -0.01%     
==========================================
  Files         240      240              
  Lines       10194    10191       -3     
  Branches     1720     1721       +1     
==========================================
- Hits         9087     9084       -3     
  Misses        963      963              
  Partials      144      144              
Impacted Files Coverage Δ
static/js/lib/ckeditor/CKEditor.ts 91.42% <ø> (-0.88%) ⬇️
static/js/store/configureStore.ts 66.66% <ø> (-1.52%) ⬇️
static/js/components/SiteContentEditor.tsx 95.71% <100.00%> (+0.12%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -20,7 +19,7 @@ export default function configureStore(initialState?: ReduxState) {
let createStoreWithMiddleware
if (process.env.NODE_ENV !== "production" && !global._testing) {
createStoreWithMiddleware = compose(
applyMiddleware(...COMMON_MIDDLEWARE, createLogger()),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've always found our redux logging annoying and not helpful...it just clutters the dev console. In general, the same information is available in redux dev tools (chrome; firefox

Screenshot 2022-12-23 at 11 02 52 AM

It was sufficiently annoying while debugging this issue that I just got rid of it, and I think that should be a permanent change.

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.

2 participants