We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fd0fff commit cc3c9e5Copy full SHA for cc3c9e5
src/lazy-components/design-library/design-library-list/index.js
@@ -58,7 +58,7 @@ const DesignLibraryList = memo( props => {
58
{ ! ( designs || [] ).length &&
59
<p className="components-base-control__help" data-testid="nothing-found-note">{ __( 'No designs found', i18n ) }</p>
60
}
61
- { typeof errors === 'object' && Object.keys( errors ).length &&
+ { typeof errors === 'object' && errors && Object.keys( errors ).length &&
62
<p className="components-base-control__help">
63
<strong>{ __( 'An error has occurred:', i18n ) }</strong>
64
<br />
0 commit comments