diff --git a/client/src/components/ToolsList/ToolsList.vue b/client/src/components/ToolsList/ToolsList.vue index 319f27c5809b..14277d065892 100644 --- a/client/src/components/ToolsList/ToolsList.vue +++ b/client/src/components/ToolsList/ToolsList.vue @@ -60,15 +60,14 @@ const filterSettings = computed(() => { return newFilterSettings; }); -const itemsLoaded: Ref = ref([]); - onMounted(async () => { await toolStore.fetchTools(filterSettings.value); - itemsLoaded.value = Object.values(toolStore.getToolsById(filterSettings.value)); }); const filterCount = computed(() => Object.keys(filterSettings.value).length); +const itemsLoaded = computed(() => Object.values(toolStore.getToolsById(filterSettings.value))); + function scrollToTop() { scrollContainer.value?.scrollTo({ top: 0, behavior: "smooth" }); }