From 93706702c54fd2c3363cab72427c1e3dbac43c26 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 18 May 2026 09:59:52 +0200 Subject: [PATCH] fix(api-docs): accept functional-component icons in EndpointSection AntD-Vue icons (SafetyCertificateOutlined, etc.) are functional components, so the icon prop's type: Object validator was rejecting them with a "Expected Object, got Function" warning at runtime. Co-Authored-By: Claude Opus 4.7 --- frontend/src/pages/api-docs/EndpointSection.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/api-docs/EndpointSection.vue b/frontend/src/pages/api-docs/EndpointSection.vue index 307f0a41..795e9bb6 100644 --- a/frontend/src/pages/api-docs/EndpointSection.vue +++ b/frontend/src/pages/api-docs/EndpointSection.vue @@ -9,7 +9,7 @@ import { safeInlineHtml } from './endpoints.js'; const props = defineProps({ section: { type: Object, required: true }, - icon: { type: Object, default: null }, + icon: { type: [Object, Function], default: null }, collapsed: { type: Boolean, default: false }, });