From 5a1329f1df9436c8e5c1b70904b819287a5d1277 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Thu, 27 Jan 2022 13:33:43 +0100 Subject: [PATCH] Fix loading of saved filters [SCI-6474] --- app/assets/stylesheets/repository/filters.scss | 1 + app/javascript/vue/repository_filter/container.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/app/assets/stylesheets/repository/filters.scss b/app/assets/stylesheets/repository/filters.scss index 889282b86..3ad6c486e 100644 --- a/app/assets/stylesheets/repository/filters.scss +++ b/app/assets/stylesheets/repository/filters.scss @@ -55,6 +55,7 @@ align-items: center; display: flex; padding: .5em 1em; + cursor: pointer; .btn-light { color: $color-silver-chalice; diff --git a/app/javascript/vue/repository_filter/container.vue b/app/javascript/vue/repository_filter/container.vue index c34485021..f8e53528c 100644 --- a/app/javascript/vue/repository_filter/container.vue +++ b/app/javascript/vue/repository_filter/container.vue @@ -95,6 +95,7 @@ $('#filtersColumnsDropdown').toggleClass('open'); }, loadFilters(filterUrl) { + this.filters = []; $.get(filterUrl, (data) => { let filters = []; let rawFilters = data.data.attributes.default_columns.concat((data.included || []).map(f => f.attributes))