Skip to content

Commit 7800cc9

Browse files
committed
fix: logic for showing the empty webtools state
1 parent 65d11a8 commit 7800cc9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/seven-coats-give.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"webtools-addon-sitemap": patch
3+
---
4+
5+
fix: logic for showing the empty webtools state

packages/addons/sitemap/admin/tabs/CollectionURLs/index.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ const CollectionURLs = () => {
4949
return null;
5050
}
5151

52-
if (state.get('contentTypes').size === 0) {
52+
if (
53+
state.get('contentTypes').size === 0 ||
54+
state.get('contentTypes').length === 0
55+
) {
5356
return (
5457
<EmptyStateLayout
5558
content={formatMessage({

0 commit comments

Comments
 (0)