From 75a13eb6603dadf2632f268d1dc411cd6e6d594a Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Mon, 5 Feb 2024 14:29:23 -0800 Subject: [PATCH] [docs] Fix playground --- src-docs/src/views/tree_view/playground.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src-docs/src/views/tree_view/playground.js b/src-docs/src/views/tree_view/playground.js index b8d5ca18d689..66d6254b0454 100644 --- a/src-docs/src/views/tree_view/playground.js +++ b/src-docs/src/views/tree_view/playground.js @@ -1,15 +1,18 @@ import { EuiTreeView, EuiIcon } from '../../../../src/components'; +import { EuiTreeViewClass } from '../../../../src/components/tree_view/tree_view'; import { propUtilityForPlayground, generateCustomProps, } from '../../services/playground'; export const TreeViewConfig = () => { - const docgenInfo = Array.isArray(EuiTreeView.__docgenInfo) - ? EuiTreeView.__docgenInfo[0] - : EuiTreeView.__docgenInfo; + const docgenInfo = Array.isArray(EuiTreeViewClass.__docgenInfo) + ? EuiTreeViewClass.__docgenInfo[0] + : EuiTreeViewClass.__docgenInfo; const propsToUse = propUtilityForPlayground(docgenInfo.props); + delete propsToUse.theme; + propsToUse.display = { ...propsToUse.display, defaultValue: 'default',