Fix small bug.
This commit is contained in:
@@ -54,6 +54,8 @@ const charts = computed(() => {
|
||||
return obj
|
||||
}, {})).sort((a, b) => a.death_ratio - b.death_ratio)
|
||||
|
||||
if (!dataSet.length) return {}
|
||||
|
||||
dataSet.push(dataSet.splice(dataSet.findIndex(c => c.health_condition === 'Any Disability'), 1).pop())
|
||||
dataSet.push(dataSet.splice(dataSet.findIndex(c => c.health_condition === 'Any Chronic Condition'), 1).pop())
|
||||
dataSet.push(dataSet.splice(dataSet.findIndex(c => c.health_condition === 'Other Chronic Diseases'), 1).pop())
|
||||
|
||||
Reference in New Issue
Block a user