diff --git a/generators/vue/resources/package.json b/generators/vue/resources/package.json index e0ab05647d8b..fb84b6bae9b0 100644 --- a/generators/vue/resources/package.json +++ b/generators/vue/resources/package.json @@ -16,7 +16,7 @@ "pinia": "2.2.2", "rxjs": "7.8.1", "sockjs-client": "1.6.1", - "vue": "3.5.3", + "vue": "3.5.5", "vue-i18n": "10.0.1", "vue-router": "4.4.5" }, diff --git a/generators/vue/templates/src/main/webapp/app/shared/computables/arrays.ts.ejs b/generators/vue/templates/src/main/webapp/app/shared/computables/arrays.ts.ejs index d8635f9e1a82..55a13fccb6d0 100644 --- a/generators/vue/templates/src/main/webapp/app/shared/computables/arrays.ts.ejs +++ b/generators/vue/templates/src/main/webapp/app/shared/computables/arrays.ts.ejs @@ -47,7 +47,7 @@ export const orderBy = (array: any[], opts: OrderByOptions) => { sorted = array.sort((a, b) => compareAny(a, b)); } if (reverse) { - sorted.reverse(); + return sorted.slice().reverse(); } return sorted; };