solved Office.toJSON method

parent e197815f
Showing with 4 additions and 2 deletions
...@@ -89,8 +89,10 @@ module.exports = { ...@@ -89,8 +89,10 @@ module.exports = {
via: 'office' via: 'office'
}, },
toJSON: function() { toJSON: function() {
if (!attrs.logoUrl) var office = this.toObject();
attrs.logoUrl = '/app/img/logo_pictogram.png'; if (!office.logoUrl)
office.logoUrl = '/app/img/logo_pictogram.png';
return office;
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment