https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42189 --- Comment #35 from Thomas Klausner <domm@plix.at> --- Created attachment 198147 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198147&action=edit Bug 42189: (follow-up) Guard localStorage JSON.parse against corrupt data - Wrap JSON.parse in try/catch in onMounted so corrupt or stale localStorage does not abort dashboard initialization - On parse failure, remove the bad key and fall through to the default layout instead of leaving the dashboard empty - Apply the same guard in onWidgetRegistered event handler To test: - Set localStorage "dashboard-widgets" to invalid JSON (e.g. "{bad") - Load the ERM dashboard - Verify widgets render with default layout instead of a blank page - Verify localStorage is cleaned up after the failed parse Signed-off-by: Clemens Tubach <clemens.tubach@kit.edu> Signed-off-by: Thomas Klausner <domm@plix.at> -- You are receiving this mail because: You are watching all bug changes.