diff --git a/packages/docs/src/components/api/ApiTable.vue b/packages/docs/src/components/api/ApiTable.vue index 8caebd48c070..db2a3fde7d32 100644 --- a/packages/docs/src/components/api/ApiTable.vue +++ b/packages/docs/src/components/api/ApiTable.vue @@ -89,11 +89,14 @@ const user = useUserStore() const filtered = computed(() => { - if (!appStore.apiSearch) return props.items + const items = props.items.filter((item: any) => { + return user.dev || (!user.dev && item.description !== '**FOR INTERNAL USE ONLY**') + }) + if (!appStore.apiSearch) return items const query = appStore.apiSearch.toLowerCase() - return props.items.filter((item: any) => { + return items.filter((item: any) => { return item.name.toLowerCase().includes(query) }) })