From 915893ad9c34fb81a8e0c8f39200e01d7b24fcca Mon Sep 17 00:00:00 2001 From: larousso Date: Wed, 11 Jul 2018 15:57:07 +0200 Subject: [PATCH] fix #111 tags not working if no is present --- izanami-clients/react/src/features.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (