Skip to content

Commit 0849940

Browse files
committed
fix: hotfix for inifinite components update under some configurations (#2066)
1 parent 9354bc2 commit 0849940

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/back-end/builddata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"version": "0.46.4",
3-
"build": 17037
4-
}
3+
"build": 17044
4+
}

app/src/components/basic-elements/AuthorsDropDown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default {
4040
},
4141
computed: {
4242
authors () {
43-
return [''].concat(this.$store.state.currentSite.authors.sort((a, b) => {
43+
return [''].concat(this.$store.state.currentSite.authors.slice().sort((a, b) => {
4444
return a.username.localeCompare(b.username);
4545
}).map(author => author.id));
4646
},

app/src/components/basic-elements/PagesDropDown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default {
3838
},
3939
computed: {
4040
pages () {
41-
return [''].concat(this.$store.state.currentSite.pages.sort((a, b) => {
41+
return [''].concat(this.$store.state.currentSite.pages.slice().sort((a, b) => {
4242
return a.title.localeCompare(b.title);
4343
}).map(page => page.id));
4444
},

app/src/components/basic-elements/TagsDropDown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default {
3838
},
3939
computed: {
4040
tagPages () {
41-
return [''].concat(this.$store.state.currentSite.tags.sort((a, b) => {
41+
return [''].concat(this.$store.state.currentSite.tags.slice().sort((a, b) => {
4242
return a.name.localeCompare(b.name);
4343
}).map(tag => tag.id));
4444
},

0 commit comments

Comments
 (0)