Skip to content

Commit

Permalink
[OSCI][BUG] Fixing bug for making playground toggle button available …
Browse files Browse the repository at this point in the history
…in OUI v2.0 (#1162)

* changing definition for const 'isPlaygroundUnsupported' to make playground toggle button visible

Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>

* updating CHANELOG.md with description related to bug fix of playground toggle button

Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>

* Update CHANGELOG.md

Co-authored-by: Matt Provost <mattprovost6@gmail.com>
Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>

---------

Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
Co-authored-by: Matt Provost <mattprovost6@gmail.com>
  • Loading branch information
BigSamu and BSFishy authored Jan 11, 2024
1 parent eac077e commit 6d5c3b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- Extract build archive into a folder for OSD integration test CI ([#1075](https://github.com/opensearch-project/oui/pull/1075))
- Correct file path for import of Query component ([#1069](https://github.com/opensearch-project/oui/pull/1069))
- Fix "Guidelines" documentation links rendering blank pages ([#1111](https://github.com/opensearch-project/oui/pull/1111))
- Fix playground support check ([#1162](https://github.com/opensearch-project/oui/pull/1162))

### 🚞 Infrastructure

Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/components/guide_section/guide_section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const GuideSection: FunctionComponent<GuideSection> = ({

const renderPlaygroundToggle = () => {
const isPlaygroundUnsupported =
typeof window !== 'undefined' && typeof document !== 'undefined';
typeof window === 'undefined' || typeof document === 'undefined';

if (!isPlaygroundUnsupported && !!playground) {
return (
Expand Down

0 comments on commit 6d5c3b9

Please sign in to comment.