Use stringify & parse with JS arrays/objects when setting into database/localStorage. Local Storage can only accept strings, not objects.
// Use JSON.stringify() before storing
localStorage.setItem('notes', JSON.stringify(this.notes))
// Use JSON.parse() when retrieving data from localStorage
notes: JSON.parse(localStorage.getItem('notes')) || [],