Adapt ArticleManagerto new API
This commit is contained in:
parent
fe6823fc7b
commit
08d1521d81
1 changed files with 2 additions and 2 deletions
|
@ -417,12 +417,12 @@ class ArticleManager {
|
|||
|
||||
update_data(data) {
|
||||
for (let article_dict of data) {
|
||||
article = this.list.find(Article, {'id': article_dict['id']});
|
||||
article = this.list.find('article', article_dict['id']);
|
||||
|
||||
// For now, article additions are disregarded
|
||||
if (article) {
|
||||
article.stock = article_dict['stock'];
|
||||
this._$container.find('#data-article-'+article_dict['id']+' .stock')
|
||||
this._$container.find('#article-'+article_dict['id']+' .stock')
|
||||
.text(article_dict['stock']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue