test(slides): fix slides test to remove errors

This commit is contained in:
Brandy Carney
2016-02-10 11:39:45 -06:00
parent 8bde8d7522
commit ef1fc75203

View File

@ -22,14 +22,13 @@ class MyApp {
this.http.get(baseUrl + '?method=flickr.groups.pools.getPhotos&group_id=1463451@N25&safe_search=1&api_key='
+ FLICKR_API_KEY + '&nojsoncallback=1&format=json&tags=' + tags)
.map(res => res.json())
.subscribe(data => {
this.images = data.photos.photo.slice(0, 20);
this.images = data.json().photos.photo.slice(0, 20);
setTimeout(() => {
this.slider.update();
});
}, (err) => {
alert('Unable to load images');
console.info('Unable to load images');
console.error(err);
})
}