Add full ability to add/delete attendees
This commit is contained in:
@ -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;
|
||||
})));
|
||||
|
Reference in New Issue
Block a user