diff --git a/src/pages/HomeAdministrator.vue b/src/pages/HomeAdministrator.vue index f1251b2d1..187ed48f5 100644 --- a/src/pages/HomeAdministrator.vue +++ b/src/pages/HomeAdministrator.vue @@ -11,6 +11,7 @@
Lists administrations assigned to your account
+
@@ -38,6 +39,7 @@
+
Sort by
+
administrations.value, - (data) => { - if (!data) return; + administrations, + (updatedAdministrationsData) => { + if (!updatedAdministrationsData) return; // Generate auto-complete search tokens based on the data. generateAutoCompleteSearchTokens(); // Set the filtered administrations based on the search value. if (!search.value) { - filteredAdministrations.value = data; + filteredAdministrations.value = updatedAdministrationsData; } else { - filteredAdministrations.value = data?.filter((item) => + filteredAdministrations.value = updatedAdministrationsData?.filter((item) => item.name.toLowerCase().includes(search.value.toLowerCase()), ); } }, + { immediate: true }, ); // Table sort options