Skip to content

Commit f938dbc

Browse files
Fix undefined errors on Activity page (#32378)
close #32377 Co-authored-by: Giteabot <[email protected]>
1 parent c60e4dc commit f938dbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web_src/js/components/RepoActivityTopAuthors.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const colors = ref({
1717
const activityTopAuthors = window.config.pageData.repoActivityTopAuthors || [];
1818
1919
const graphPoints = computed(() => {
20-
return activityTopAuthors.value.map((item) => {
20+
return activityTopAuthors.map((item) => {
2121
return {
2222
value: item.commits,
2323
label: item.name,
@@ -26,7 +26,7 @@ const graphPoints = computed(() => {
2626
});
2727
2828
const graphAuthors = computed(() => {
29-
return activityTopAuthors.value.map((item, idx) => {
29+
return activityTopAuthors.map((item, idx) => {
3030
return {
3131
position: idx + 1,
3232
...item,
@@ -35,7 +35,7 @@ const graphAuthors = computed(() => {
3535
});
3636
3737
const graphWidth = computed(() => {
38-
return activityTopAuthors.value.length * 40;
38+
return activityTopAuthors.length * 40;
3939
});
4040
4141
const styleElement = ref<HTMLElement | null>(null);

0 commit comments

Comments
 (0)