Data View not saving across pages

For all settings we have now, when you click to change a setting, it is saved in local storage and can be used across pages. However, the data view, when changed to raw JSON or pretty JSON is not saved.

Steps to reproduce:

  1. Go to any user profile > Operations Section
  2. Click to Change from Data View to Pretty JSON
  3. Refresh Page
  4. Data view switches back to visualize data