bug 🐛 : on click tag filter is now fixed (#916)

This commit is contained in:
palash-signoz 2022-03-25 19:16:07 +05:30 committed by GitHub
parent 995232e057
commit e7ba5f9f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),