mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 19:05:59 +08:00
fix: log chips not forming making filtering not work (#4749)
* fix: log chips not forming making filtering not work * fix: remove console log
This commit is contained in:
parent
ae594061e9
commit
e1679790f7
@ -48,7 +48,6 @@ function LogGeneralField({
|
|||||||
fieldValue,
|
fieldValue,
|
||||||
linesPerRow = 1,
|
linesPerRow = 1,
|
||||||
}: LogFieldProps): JSX.Element {
|
}: LogFieldProps): JSX.Element {
|
||||||
console.log('fieldKey:', fieldKey, linesPerRow);
|
|
||||||
const html = useMemo(
|
const html = useMemo(
|
||||||
() => ({
|
() => ({
|
||||||
__html: convert.toHtml(dompurify.sanitize(fieldValue)),
|
__html: convert.toHtml(dompurify.sanitize(fieldValue)),
|
||||||
|
@ -75,10 +75,13 @@ export const useTag = (
|
|||||||
(value: string): void => {
|
(value: string): void => {
|
||||||
const { tagKey } = getTagToken(value);
|
const { tagKey } = getTagToken(value);
|
||||||
const parts = tagKey.split('-');
|
const parts = tagKey.split('-');
|
||||||
|
|
||||||
// this is done to ensure that `hello-world` also gets converted to `body CONTAINS hello-world`
|
// this is done to ensure that `hello-world` also gets converted to `body CONTAINS hello-world`
|
||||||
const id = parts[parts.length - 1];
|
let id = parts[parts.length - 1];
|
||||||
const key = parts.slice(0, -1).join('-');
|
let key = parts.slice(0, -1).join('-');
|
||||||
|
if (parts.length === 1) {
|
||||||
|
id = '';
|
||||||
|
[key] = parts;
|
||||||
|
}
|
||||||
|
|
||||||
if (id === 'custom') {
|
if (id === 'custom') {
|
||||||
const customValue = whereClauseConfig
|
const customValue = whereClauseConfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user