diff --git a/izanami-clients/react/src/features.js b/izanami-clients/react/src/features.js
index 0082308ac..d1ad6cd54 100644
--- a/izanami-clients/react/src/features.js
+++ b/izanami-clients/react/src/features.js
@@ -97,7 +97,7 @@ export class Feature extends Component {
return this.props.render(isActive);
}
}
- if (isActive && enabledChildren.length > 0) {
+ if (isActive && (enabledChildren.length > 0 || disabledChildren.length > 0)) {
if (debug) console.log(`[Features] feature '${path}' is enabled, rendering first component`);
if (debug) {
return (
@@ -107,7 +107,7 @@ export class Feature extends Component {
);
}
return enabledChildren[0];
- } else if (!isActive && disabledChildren.length > 0) {
+ } else if (!isActive && (enabledChildren.length > 0 || disabledChildren.length > 0)) {
if (debug) console.log(`[Features] feature '${path}' is disabled, rendering first component`);
if (debug) {
return (