opensearch-project / oui

OpenSearch UI Framework
Apache License 2.0
31 stars 65 forks source link

[BUG] The Props tab for the ouiButton component displays error #1261

Open xeniatup opened 2 months ago

xeniatup commented 2 months ago

Describe the bug

On the https://oui.opensearch.org/1.5/#/navigation/button the Props tab for ouiButton shows an error. I tried a couple of other components, they load the props properly.

Error: Cannot read properties of undefined (reading 'props') at GuideSectionPropsTable (https://oui.opensearch.org/1.5/bundle.js:689429:26) at renderWithHooks (https://oui.opensearch.org/1.5/bundle.js:341789:18) at mountIndeterminateComponent (https://oui.opensearch.org/1.5/bundle.js:344323:13) at beginWork$1 (https://oui.opensearch.org/1.5/bundle.js:345691:16) at HTMLUnknownElement.callCallback (https://oui.opensearch.org/1.5/bundle.js:325865:14) at Object.invokeGuardedCallbackDev (https://oui.opensearch.org/1.5/bundle.js:325914:16) at invokeGuardedCallback (https://oui.opensearch.org/1.5/bundle.js:325969:31) at beginWork$$1 (https://oui.opensearch.org/1.5/bundle.js:351309:7) at performUnitOfWork (https://oui.opensearch.org/1.5/bundle.js:350227:12) at workLoopSync (https://oui.opensearch.org/1.5/bundle.js:350200:22)

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://oui.opensearch.org/1.5/#/navigation/button'
  2. Scroll to the tabs (Demo JS, Snippet, Props)
  3. Click on 'Props.'
  4. See error

Expected behavior

Other components show a table with props under a similar tab.

Screenshots

Screenshot 2024-04-17 at 11 56 03 AM
amsiglan commented 1 month ago

+1

dblock commented 1 week ago

Catch All Triage - 1 2 3 4 5 6