mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 05:25:57 +08:00
Revert "[Feat]: added iscolumn in option rendering" (#4396)
This commit is contained in:
parent
c1b9049176
commit
51c1f88593
@ -81,7 +81,6 @@ export const AggregatorFilter = memo(function AggregatorFilter({
|
||||
}),
|
||||
)}
|
||||
dataType={item.dataType}
|
||||
isColumn={item.isColumn}
|
||||
/>
|
||||
),
|
||||
value: `${item.key}${selectValueDivider}${createIdFromObjectFields(
|
||||
|
@ -81,7 +81,6 @@ export const GroupByFilter = memo(function GroupByFilter({
|
||||
}),
|
||||
)}
|
||||
dataType={item.dataType || ''}
|
||||
isColumn={item.isColumn}
|
||||
/>
|
||||
),
|
||||
value: `${transformStringWithPrefix({
|
||||
|
@ -10,7 +10,6 @@ function OptionRenderer({
|
||||
label,
|
||||
value,
|
||||
dataType,
|
||||
isColumn,
|
||||
}: OptionRendererProps): JSX.Element {
|
||||
const optionType = getOptionType(label);
|
||||
|
||||
@ -28,10 +27,6 @@ function OptionRenderer({
|
||||
<TagLabel>Data type: </TagLabel>
|
||||
<TagValue>{dataType}</TagValue>
|
||||
</TagContainer>
|
||||
<TagContainer>
|
||||
<TagLabel>isColumn: </TagLabel>
|
||||
<TagValue>{isColumn ? 'True' : 'False'}</TagValue>
|
||||
</TagContainer>
|
||||
</div>
|
||||
</SelectOptionContainer>
|
||||
) : (
|
||||
@ -45,7 +40,6 @@ interface OptionRendererProps {
|
||||
label: string;
|
||||
value: string;
|
||||
dataType: string;
|
||||
isColumn: boolean;
|
||||
}
|
||||
|
||||
export default OptionRenderer;
|
||||
|
@ -210,7 +210,6 @@ function QueryBuilderSearch({
|
||||
label={option.label}
|
||||
value={option.value}
|
||||
dataType={option.dataType || ''}
|
||||
isColumn={option.isColumn || false}
|
||||
/>
|
||||
{option.selected && <StyledCheckOutlined />}
|
||||
</Select.Option>
|
||||
|
@ -15,5 +15,4 @@ export type Option = {
|
||||
label: string;
|
||||
selected?: boolean;
|
||||
dataType?: string;
|
||||
isColumn?: boolean;
|
||||
};
|
||||
|
@ -44,7 +44,6 @@ export const useOptions = (
|
||||
label: `${getLabel(item)}`,
|
||||
value: item.key,
|
||||
dataType: item.dataType,
|
||||
isColumn: item.isColumn,
|
||||
})),
|
||||
[getLabel],
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user