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

Commit

Permalink
Dont break the CP if config hasn't been published
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksleight committed Jun 1, 2021
1 parent 776da2d commit e8c7a91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/js/cp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/js/cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Paragraph from './paragraph'

Statamic.booting(() => {

const styles = Statamic.$config.get('bard-paragraph-style.styles');
const styles = Statamic.$config.get('bard-paragraph-style.styles') || [];

Statamic.$bard.extend(({ node }) => node(new Paragraph));

Expand Down

0 comments on commit e8c7a91

Please sign in to comment.