From 4fd2b159a6c6f44535c8407fc781885cc22e10f0 Mon Sep 17 00:00:00 2001 From: Huskydog9988 <39809509+Huskydog9988@users.noreply.github.com> Date: Sun, 6 Apr 2025 13:47:55 -0400 Subject: [PATCH] fix: type error in devices page --- pages/account/devices.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/account/devices.vue b/pages/account/devices.vue index 4d3926c..024c49f 100644 --- a/pages/account/devices.vue +++ b/pages/account/devices.vue @@ -93,7 +93,7 @@ import { CheckIcon } from "@heroicons/vue/24/outline"; import moment from "moment"; -const clients = ref(await $dropFetch("/api/v1/user/client")); +const clients = await $dropFetch("/api/v1/user/client"); async function revokeClient(id: string) { await $dropFetch(`/api/v1/user/client/${id}`, { method: "DELETE" }); @@ -102,8 +102,8 @@ async function revokeClient(id: string) { function revokeClientWrapper(id: string) { revokeClient(id) .then(() => { - const index = clients.value.findIndex((e) => e.id == id); - clients.value.splice(index, 1); + const index = clients.findIndex((e) => e.id == id); + clients.splice(index, 1); }) .catch((e) => { createModal(