Cannot read property 'isEditable' of null