Skip to content

Commit

Permalink
Update apps/gatsby/src/Sidebar.js
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Ehlinger <[email protected]>
  • Loading branch information
TylerBarnes and veryspry authored Oct 6, 2021
1 parent b946e97 commit 230c464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/gatsby/src/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default class Sidebar extends React.Component {

this.setState({ buttonDisabled: true })

// wait a bit for contentful to save.
// Contentful takes a few seconds to save. If we do not wait a bit for this, then the Gatsby preview may be started and finish before any content is even saved on the Contentful side
await new Promise(resolve => setTimeout(resolve, 3000))

this.refreshPreview();
Expand Down

0 comments on commit 230c464

Please sign in to comment.