Update PTHelper.js

pull/4243/head
Tuğçe Küçükoğlu 2023-08-07 16:14:43 +03:00
parent 9727cc1515
commit 8e7a7be794
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {