mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: Use type and value from action to remove tag (#238)
fixes: #237 Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
This commit is contained in:
		
							parent
							
								
									02ab9169da
								
							
						
					
					
						commit
						50b6a5790d
					
				| @ -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; | ||||
|     } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user