#8434·openmct

Corrupt list-view sort-order storage breaks folder list views

Author: soroush5Created Sep 4, 2026Updated Sep 4, 2026

Summary

A corrupt openmct-listview-sort-order value in localStorage breaks every folder opened as a list view: ListView.vue data() calls JSON.parse with no guard (SyntaxError on corrupt text), and a valid-JSON-but-wrong-shaped value (null) throws TypeError on parsed.sortBy. Since data() throws during init, the view never renders until the key is manually cleared — same bug class as #8430, different file.

Expected

Fall back to the default sort (model.name, ascending) on unparseable or wrong-shaped stored values, and only accept a string sortBy / boolean ascending.