diff --git a/frontend/src/container/Trace/Search/AllTags/index.tsx b/frontend/src/container/Trace/Search/AllTags/index.tsx index a5c93f2c8171..91e2d08cb0bd 100644 --- a/frontend/src/container/Trace/Search/AllTags/index.tsx +++ b/frontend/src/container/Trace/Search/AllTags/index.tsx @@ -1,7 +1,6 @@ import { CaretRightFilled, PlusOutlined } from '@ant-design/icons'; import { Button, Space, Typography } from 'antd'; -import { isEqual } from 'lodash-es'; -import React, { useEffect, useState } from 'react'; +import React, { useState } from 'react'; import { connect, useSelector } from 'react-redux'; import { bindActionCreators } from 'redux'; import { ThunkDispatch } from 'redux-thunk'; @@ -48,12 +47,6 @@ function AllTags({ ]); }; - useEffect(() => { - if (!isEqual(traces.selectedTags, localSelectedTags)) { - setLocalSelectedTags(traces.selectedTags); - } - }, [traces.selectedTags, localSelectedTags]); - const onCloseHandler = (index: number): void => { setLocalSelectedTags([ ...localSelectedTags.slice(0, index),