From 8e7a7be79479cf76552d5a779658873492524456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 7 Aug 2023 16:14:43 +0300 Subject: [PATCH] Update PTHelper.js --- components/doc/helpers/PTHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/doc/helpers/PTHelper.js b/components/doc/helpers/PTHelper.js index bd74beb72..6a342f498 100644 --- a/components/doc/helpers/PTHelper.js +++ b/components/doc/helpers/PTHelper.js @@ -1,7 +1,7 @@ import APIDocs from '@/doc/common/apidoc/index.json'; export const getPTOption = (name) => { - const { props } = APIDocs[name.toLowerCase()].interfaces.values[`${name}PassThroughOptions`]; + const { props } = APIDocs[name.toLowerCase()].interfaces.values[`${name}PassThroughOptions`] || APIDocs[name.toLowerCase()].interfaces.values[`${name}DirectivePassThroughOptions`]; let data = []; for (const [i, prop] of props.entries()) {