diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue
index a244ab1441..cab8cb1927 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue
+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue
@@ -83,7 +83,7 @@
- {{ $__("Add new license") }}
{{ $__("There are no licenses created yet") }}
@@ -98,7 +98,7 @@ export default {
name: "AgreementLicenses",
data() {
return {
- licenses: [],
+ license_count: null,
}
},
props: {
@@ -108,9 +108,9 @@ export default {
},
beforeCreate() {
const client = APIClient.erm
- client.licenses.getAll().then(
- licenses => {
- this.licenses = licenses
+ client.licenses.count().then(
+ count => {
+ this.license_count = count
this.initialized = true
},
error => {}