From 3bfcaa67276e4e8127c3d98571c34a7166e851a3 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Mon, 17 Feb 2025 09:58:51 +0000 Subject: [PATCH] fix: Feature tags not showing up in tag selection UI (#5113) --- frontend/web/components/modals/CreateFlag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/web/components/modals/CreateFlag.js b/frontend/web/components/modals/CreateFlag.js index b3ea53f7c28e..2065f8d31691 100644 --- a/frontend/web/components/modals/CreateFlag.js +++ b/frontend/web/components/modals/CreateFlag.js @@ -72,7 +72,7 @@ const CreateFlag = class extends Component { multivariate_options: [], } const { allowEditDescription } = this.props - const hideTagsByType = this.props.hideTagsByType || [] + const hideTags = this.props.hideTags || [] if (this.props.projectFlag) { this.userOverridesPage(1) } @@ -107,7 +107,7 @@ const CreateFlag = class extends Component { name, period: 30, selectedIdentity: null, - tags: tags?.filter((tag) => hideTagsByType.includes(tag.type)) || [], + tags: tags?.filter((tag) => !hideTags.includes(tag)) || [], } }