From 30d935a76879b1bfc9c888af2a2ca6a5b8c13a9d Mon Sep 17 00:00:00 2001 From: sawhil Date: Mon, 14 Apr 2025 01:30:05 +0530 Subject: [PATCH] fix: used existing constant --- frontend/src/container/LogDetailedView/TableView.tsx | 4 ++-- .../container/LogDetailedView/TableView/TableViewActions.tsx | 4 ++-- frontend/src/container/LogDetailedView/constant.ts | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/frontend/src/container/LogDetailedView/TableView.tsx b/frontend/src/container/LogDetailedView/TableView.tsx index c5919bb061..d38b11e3c4 100644 --- a/frontend/src/container/LogDetailedView/TableView.tsx +++ b/frontend/src/container/LogDetailedView/TableView.tsx @@ -13,6 +13,7 @@ import AddToQueryHOC, { import { ResizeTable } from 'components/ResizeTable'; import { OPERATORS } from 'constants/queryBuilder'; import ROUTES from 'constants/routes'; +import { RESTRICTED_SELECTED_FIELDS } from 'container/LogsFilters/config'; import { FontSize, OptionsQuery } from 'container/OptionsMenu/types'; import { useIsDarkMode } from 'hooks/useDarkMode'; import history from 'lib/history'; @@ -30,7 +31,6 @@ import { ILog } from 'types/api/logs/log'; import { DataTypes } from 'types/api/queryBuilder/queryAutocompleteResponse'; import { ActionItemProps } from './ActionItem'; -import { RESTRICTED_FIELDS } from './constant'; import FieldRenderer from './FieldRenderer'; import { TableViewActions } from './TableView/TableViewActions'; import { filterKeyForField, findKeyPath, flattenObject } from './utils'; @@ -247,7 +247,7 @@ function TableView({ } const fieldFilterKey = filterKeyForField(field); - if (!RESTRICTED_FIELDS.includes(fieldFilterKey)) { + if (!RESTRICTED_SELECTED_FIELDS.includes(fieldFilterKey)) { return ( {renderFieldContent()} - {!isListViewPanel && !RESTRICTED_FIELDS.includes(fieldFilterKey) && ( + {!isListViewPanel && !RESTRICTED_SELECTED_FIELDS.includes(fieldFilterKey) && (