diff --git a/src/components/stats/DataTable.vue b/src/components/stats/DataTable.vue index 40b6dcdc..6e4bff72 100644 --- a/src/components/stats/DataTable.vue +++ b/src/components/stats/DataTable.vue @@ -620,7 +620,7 @@ export default { filteredData() { let data = this.items if (this.type === 'item') { - if (this.dataTable.onlyOpen) data = data.filter(el => existUtils.existence(el.stage, true)) + if (this.dataTable.onlyOpen) data = data.filter(el => existUtils.existence(el.stage, true) && (el.end === null || el.end > Date.now())) if (!this.dataTable.showPermanent) data = data.filter(el => el.stage.stageType !== 'MAIN' && el.stage.stageType !== 'SUB' && el.stage.stageType !== 'DAILY') if (!this.dataTable.showActivity) data = data.filter(el => el.stage.stageType !== 'ACTIVITY') } else if (this.type === 'stage') { diff --git a/src/components/stats/PreviewItemCard.vue b/src/components/stats/PreviewItemCard.vue index 26a19386..88fa9a6d 100644 --- a/src/components/stats/PreviewItemCard.vue +++ b/src/components/stats/PreviewItemCard.vue @@ -126,8 +126,8 @@ export default { const data = get.statistics.byItemId(this.itemId) // filter out stages that have too less samples .filter(el => el.times > 100) - // only open stages - .filter(el => existUtils.existence(el.stage, true)) + // only open stages, and item must still be droppable now + .filter(el => existUtils.existence(el.stage, true) && (el.end === null || el.end > Date.now())) .sort((a, b) => b.percentage - a.percentage)