From 50b6a5790d218f57963bc63b3c6daea01edb4f11 Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Thu, 4 Feb 2021 16:08:25 +0100 Subject: [PATCH] fix: Use type and value from action to remove tag (#238) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes: #237 Co-authored-by: Ivar Conradi Ă˜sthus --- frontend/src/store/feature-tags/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/store/feature-tags/index.js b/frontend/src/store/feature-tags/index.js index 05cabe9953..4a89c53314 100644 --- a/frontend/src/store/feature-tags/index.js +++ b/frontend/src/store/feature-tags/index.js @@ -16,7 +16,7 @@ const featureTags = (state = getInitState(), action) => { case TAG_FEATURE_TOGGLE: return state.push(new $MAP(action.tag)); case UNTAG_FEATURE_TOGGLE: - return state.remove(state.indexOf(t => t.id === action.value.tagId)); + return state.remove(state.indexOf(t => t.value === action.tag.value && t.type === action.tag.type)); default: return state; }