Guard against null themes (https://github.com/woocommerce/woocommerce-admin/pull/4244)
Co-authored-by: Rebecca Scott <me@becdetat.com>
This commit is contained in:
parent
1f0307e8b0
commit
88a9f1c415
|
@ -313,7 +313,9 @@ class Theme extends Component {
|
|||
const allThemes = [
|
||||
...themes.filter(
|
||||
( theme ) =>
|
||||
theme.has_woocommerce_support || theme.slug === activeTheme
|
||||
theme &&
|
||||
( theme.has_woocommerce_support ||
|
||||
theme.slug === activeTheme )
|
||||
),
|
||||
...uploadedThemes,
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue