Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
fix: bring back recipes toggle
Browse files Browse the repository at this point in the history
It was broken in the demo app, this appears to do the trick!
  • Loading branch information
kanadgupta committed Feb 1, 2021
1 parent d90dc65 commit 0b3fbeb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions example/src/Demo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class Demo extends React.Component {
if (enableTutorials) {
docs.forEach((doc, i) => {
// Only add our mock tutorials if we don't have them present.
if (!('tutorials' in doc)) {
if ('tutorials' in doc) {
docs[i].tutorials = [
{
title: 'Test Recipe',
Expand Down Expand Up @@ -195,9 +195,7 @@ class Demo extends React.Component {
});
} else {
docs.forEach((doc, i) => {
if (!('tutorials' in doc)) {
docs[i].tutorials = [];
}
docs[i].tutorials = [];
});
}

Expand Down

0 comments on commit 0b3fbeb

Please sign in to comment.