1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 23:59:47 +02:00

Fix smart section refresh giving [object Object]

This commit is contained in:
Elliott Stoneham 2016-09-27 14:44:36 +01:00
parent f436d332b4
commit eb902d8a52

View file

@ -42,9 +42,9 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
changes.forEach(function (newPage) {
let oldPage = self.get('pages').findBy('id', newPage.get('id'));
if (is.not.undefined(oldPage)) {
oldPage.set('body', newPage.body);
oldPage.set('revised', newPage.revised);
self.showNotification(`Refreshed ${oldPage.title}`);
oldPage.set('body', newPage.get('body'));
oldPage.set('revised', newPage.get('revised'));
self.showNotification(`Refreshed ${oldPage.get('title')}`);
}
});
});