diff --git a/frontend/src/Artist/Index/ArtistIndex.js b/frontend/src/Artist/Index/ArtistIndex.js
index e250d61f5..dc61fb72b 100644
--- a/frontend/src/Artist/Index/ArtistIndex.js
+++ b/frontend/src/Artist/Index/ArtistIndex.js
@@ -282,11 +282,7 @@ class ArtistIndex extends Component {
null
}
- {
- (view === 'posters' || view === 'banners' || view === 'overview') &&
-
-
- }
+
{
- const name = child.type.name;
-
- if (name === SEPARATOR_NAME) {
+ if (Object.keys(child.props).length === 0) {
separatorCount++;
} else {
buttonCount++;
@@ -68,12 +65,14 @@ function calculateOverflowItems(children, isMeasured, width, collapseButtons) {
}
validChildren.forEach((child, index) => {
+ const isSeparator = Object.keys(child.props).length === 0;
+
if (actualButtons < maxButtons) {
- if (child.type.name !== SEPARATOR_NAME) {
+ if (!isSeparator) {
buttons.push(child);
actualButtons++;
}
- } else if (child.type.name !== SEPARATOR_NAME) {
+ } else if (!isSeparator) {
overflowItems.push(child.props);
}
});