Add full ability to add/delete attendees

This commit is contained in:
2016-12-28 09:25:20 -05:00
parent 49893ffdb6
commit 350a30715a
15 changed files with 292 additions and 28 deletions

View File

@ -2,8 +2,9 @@ var SuggestionConstants = require('../constants/SuggestionConstants');
var ErrorActions = require('./ErrorActions');
var models = require('../models.js');
var models = require('../models');
var Suggestion = models.Suggestion;
var PopularSuggestion = models.PopularSuggestion;
var Error = models.Error;
function fetchSuggestions() {
@ -114,8 +115,8 @@ function fetchPopular() {
if (e.isError()) {
ErrorActions.serverError(e);
} else {
dispatch(popularSuggestionsFetched(data.suggestions.map(function(json) {
var a = new Suggestion();
dispatch(popularSuggestionsFetched(data.popularsuggestions.map(function(json) {
var a = new PopularSuggestion();
a.fromJSON(json);
return a;
})));