codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
397 stars 68 forks source link

User page tabs with no sidebar have a JS error in the developer console #1366

Open trichoplax opened 4 months ago

trichoplax commented 4 months ago

Describe the bug Those tabs on the user profile page that do not include the right hand side bar show the following JavaScript error message in the browser developer console:

Uncaught (in promise) TypeError: prefs.global is undefined

To Reproduce Steps to reproduce the behavior:

  1. Go to your own user profile page (click on your avatar at the top right of any page).
  2. Click on any tab that does not have a sidebar on the right hand side.
  3. See error message in the developer console.

Expected behavior The behaviour to a user appears to be working, but presumably is not applying the user's preferences as they cannot be accessed. It is expected that the user's preferences would be applied to all tabs.