From 00f9cf0e2c3dd7977c7aade66ee447ababff576b Mon Sep 17 00:00:00 2001
From: thedarkcolour <30441001+thedarkcolour@users.noreply.github.com>
Date: Thu, 30 Oct 2025 16:28:18 -0700
Subject: [PATCH] Fix inconsistent PAT display order (#4662)
* Fix inconsistent PAT display order
Closes #4661
* Fix side effect in computed property
* Fix lint
---------
Co-authored-by: Calum H.
---
apps/frontend/src/pages/settings/pats.vue | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/apps/frontend/src/pages/settings/pats.vue b/apps/frontend/src/pages/settings/pats.vue
index 00e62ca9..bf55bb70 100644
--- a/apps/frontend/src/pages/settings/pats.vue
+++ b/apps/frontend/src/pages/settings/pats.vue
@@ -100,7 +100,7 @@
-
+
{{ pat.name }}
@@ -332,6 +332,9 @@ const deletePatIndex = ref(null)
const loading = ref(false)
const { data: pats, refresh } = await useAsyncData('pat', () => useBaseFetch('pat'))
+const displayPats = computed(() => {
+ return pats.value.toSorted((a, b) => new Date(b.created) - new Date(a.created))
+})
async function createPat() {
startLoading()