From c37cffc8facececc306550d5d56c5573d9db5d9a Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Fri, 13 Apr 2018 12:12:42 -0300 Subject: [PATCH] Fixes error of undefined object in filter lists. Prop was being passe before loading was finished. --- src/admin/components/lists/filters-list.vue | 4 ++-- src/admin/pages/lists/items-page.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/admin/components/lists/filters-list.vue b/src/admin/components/lists/filters-list.vue index 9ff75636e..8a57e64bf 100644 --- a/src/admin/components/lists/filters-list.vue +++ b/src/admin/components/lists/filters-list.vue @@ -286,7 +286,7 @@ export default { addFieldViaButton(fieldType, fieldIndex) { this.availableFieldList.splice(fieldIndex, 1); let lastIndex = this.activeFilterList.length; - + // Updates store with temporary Filter this.addTemporaryFilter(fieldType); @@ -429,7 +429,7 @@ export default { this.isLoadingFilters = false; // Needs to be done after activeFilterList exists to compare and remove chosen fields. this.fetchFields({collectionId: this.collectionId, isRepositoryLevel: this.isRepositoryLevel, isContextEdit: true }) - .then((fields) => { + .then(() => { this.isLoadingFieldTypes = false; this.updateListOfFields(); }) diff --git a/src/admin/pages/lists/items-page.vue b/src/admin/pages/lists/items-page.vue index 13a484dbf..3257033fb 100644 --- a/src/admin/pages/lists/items-page.vue +++ b/src/admin/pages/lists/items-page.vue @@ -29,7 +29,7 @@ :active.sync="isLoadingFilters"/>

{{ $i18n.get('filters') }}