diff --git a/src/modules/contents/posts/categories/composables/use-post-category.ts b/src/modules/contents/posts/categories/composables/use-post-category.ts index d800d7f6..556cde27 100644 --- a/src/modules/contents/posts/categories/composables/use-post-category.ts +++ b/src/modules/contents/posts/categories/composables/use-post-category.ts @@ -34,10 +34,11 @@ export function usePostCategory(): usePostCategoryReturn { return data.items; }, refetchInterval(data) { - const deletingCategories = data?.filter( - (category) => !!category.metadata.deletionTimestamp + const abnormalCategories = data?.filter( + (category) => + !!category.metadata.deletionTimestamp || !category.status?.permalink ); - return deletingCategories?.length ? 3000 : false; + return abnormalCategories?.length ? 3000 : false; }, refetchOnWindowFocus: false, onSuccess(data) { diff --git a/src/modules/contents/posts/tags/composables/use-post-tag.ts b/src/modules/contents/posts/tags/composables/use-post-tag.ts index cd2d60f5..2689016c 100644 --- a/src/modules/contents/posts/tags/composables/use-post-tag.ts +++ b/src/modules/contents/posts/tags/composables/use-post-tag.ts @@ -28,10 +28,10 @@ export function usePostTag(): usePostTagReturn { return data.items; }, refetchInterval(data) { - const deletingTags = data?.filter( - (tag) => !!tag.metadata.deletionTimestamp + const abnormalTags = data?.filter( + (tag) => !!tag.metadata.deletionTimestamp || !tag.status?.permalink ); - return deletingTags?.length ? 3000 : false; + return abnormalTags?.length ? 3000 : false; }, refetchOnWindowFocus: false, });