https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42189 --- Comment #23 from Clemens Tubach <clemens.tubach@kit.edu> --- Created attachment 196556 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196556&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> -- You are receiving this mail because: You are watching all bug changes.