Hide articles with empty stock
This commit is contained in:
父節點
182ba7d9da
當前提交
4cefcccdce
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
|
@ -63,7 +63,7 @@ export default class ProximoMainScreen extends FetchedDataSectionList {
|
|||
data: []
|
||||
});
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
|
載入中…
Reference in a new issue