From f2a4a5963dd4ece3e8f132b5b0c8095c1804f679 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Tue, 4 Jun 2024 19:52:22 +0800 Subject: [PATCH] fix: Filter out null values --- components/dashboard/links/Index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dashboard/links/Index.vue b/components/dashboard/links/Index.vue index a9f5b5a..35b6611 100644 --- a/components/dashboard/links/Index.vue +++ b/components/dashboard/links/Index.vue @@ -14,7 +14,7 @@ async function getLinks() { cursor, }, }) - links.value = links.value.concat(data.links) + links.value = links.value.concat(data.links).filter(Boolean) // Sometimes cloudflare will return null, filter out cursor = data.cursor listComplete = data.list_complete }