mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 16:07:10 +00:00
bug 🐛 : on click tag filter is now fixed (#916)
This commit is contained in:
parent
995232e057
commit
e7ba5f9f33
@ -1,7 +1,6 @@
|
|||||||
import { CaretRightFilled, PlusOutlined } from '@ant-design/icons';
|
import { CaretRightFilled, PlusOutlined } from '@ant-design/icons';
|
||||||
import { Button, Space, Typography } from 'antd';
|
import { Button, Space, Typography } from 'antd';
|
||||||
import { isEqual } from 'lodash-es';
|
import React, { useState } from 'react';
|
||||||
import React, { useEffect, useState } from 'react';
|
|
||||||
import { connect, useSelector } from 'react-redux';
|
import { connect, useSelector } from 'react-redux';
|
||||||
import { bindActionCreators } from 'redux';
|
import { bindActionCreators } from 'redux';
|
||||||
import { ThunkDispatch } from 'redux-thunk';
|
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 => {
|
const onCloseHandler = (index: number): void => {
|
||||||
setLocalSelectedTags([
|
setLocalSelectedTags([
|
||||||
...localSelectedTags.slice(0, index),
|
...localSelectedTags.slice(0, index),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user