Changed the hardcoded ToDo for the first category name.
This commit is contained in:
parent
f0acbd0630
commit
e730de3887
1 changed files with 1 additions and 4 deletions
|
|
@ -36,9 +36,6 @@ const props = defineProps({
|
|||
},
|
||||
});
|
||||
|
||||
//Constants
|
||||
//const categories = ["To-do", "Completed"];
|
||||
|
||||
//Reactive data
|
||||
const centerData = ref(null);
|
||||
const hoveredSegment = ref(null);
|
||||
|
|
@ -113,7 +110,7 @@ const updateCenterData = () => {
|
|||
};
|
||||
} else {
|
||||
centerData.value = {
|
||||
label: "To-do",
|
||||
label: props.categories.labels[0],
|
||||
value: todos,
|
||||
percentage: null,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue