Skip to content

Commit

Permalink
Do not use future
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Jul 29, 2024
1 parent b5e9b05 commit aa9d200
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/website/docs/contracts/size_chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ const props = defineProps({
},
});
const chartData = computed(() => {
const sortedSizes = props.sizes.toSorted((a, b) => a.size - b.size);
const sortedSizes = [...props.sizes]
sortedSizes.sort((a, b) => a.size - b.size);
return {
labels: sortedSizes.map((item) => item.name),
datasets: [
Expand Down

0 comments on commit aa9d200

Please sign in to comment.