forked from vergnet/application-amicale
Hide articles with empty stock
This commit is contained in:
parent
182ba7d9da
commit
4cefcccdce
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ export default class ProximoMainScreen extends FetchedDataSectionList {
|
||||||
data: []
|
data: []
|
||||||
});
|
});
|
||||||
for (let k = 0; k < articles.length; k++) {
|
for (let k = 0; k < articles.length; k++) {
|
||||||
if (articles[k]['type'].includes(types[i].id)) {
|
if (articles[k]['type'].includes(types[i].id) && parseInt(articles[k]['quantity']) > 0) {
|
||||||
finalData[i].data.push(articles[k]);
|
finalData[i].data.push(articles[k]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue