Update notesMainController.js

Fixing add note error