Revert "[Feat]: added iscolumn in option rendering" (#4396)

This commit is contained in:
Rajat Dabade 2024-01-19 12:05:44 +05:30 committed by GitHub
parent c1b9049176
commit 51c1f88593
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 0 additions and 11 deletions

View File

@ -81,7 +81,6 @@ export const AggregatorFilter = memo(function AggregatorFilter({
}), }),
)} )}
dataType={item.dataType} dataType={item.dataType}
isColumn={item.isColumn}
/> />
), ),
value: `${item.key}${selectValueDivider}${createIdFromObjectFields( value: `${item.key}${selectValueDivider}${createIdFromObjectFields(

View File

@ -81,7 +81,6 @@ export const GroupByFilter = memo(function GroupByFilter({
}), }),
)} )}
dataType={item.dataType || ''} dataType={item.dataType || ''}
isColumn={item.isColumn}
/> />
), ),
value: `${transformStringWithPrefix({ value: `${transformStringWithPrefix({

View File

@ -10,7 +10,6 @@ function OptionRenderer({
label, label,
value, value,
dataType, dataType,
isColumn,
}: OptionRendererProps): JSX.Element { }: OptionRendererProps): JSX.Element {
const optionType = getOptionType(label); const optionType = getOptionType(label);
@ -28,10 +27,6 @@ function OptionRenderer({
<TagLabel>Data type: </TagLabel> <TagLabel>Data type: </TagLabel>
<TagValue>{dataType}</TagValue> <TagValue>{dataType}</TagValue>
</TagContainer> </TagContainer>
<TagContainer>
<TagLabel>isColumn: </TagLabel>
<TagValue>{isColumn ? 'True' : 'False'}</TagValue>
</TagContainer>
</div> </div>
</SelectOptionContainer> </SelectOptionContainer>
) : ( ) : (
@ -45,7 +40,6 @@ interface OptionRendererProps {
label: string; label: string;
value: string; value: string;
dataType: string; dataType: string;
isColumn: boolean;
} }
export default OptionRenderer; export default OptionRenderer;

View File

@ -210,7 +210,6 @@ function QueryBuilderSearch({
label={option.label} label={option.label}
value={option.value} value={option.value}
dataType={option.dataType || ''} dataType={option.dataType || ''}
isColumn={option.isColumn || false}
/> />
{option.selected && <StyledCheckOutlined />} {option.selected && <StyledCheckOutlined />}
</Select.Option> </Select.Option>

View File

@ -15,5 +15,4 @@ export type Option = {
label: string; label: string;
selected?: boolean; selected?: boolean;
dataType?: string; dataType?: string;
isColumn?: boolean;
}; };

View File

@ -44,7 +44,6 @@ export const useOptions = (
label: `${getLabel(item)}`, label: `${getLabel(item)}`,
value: item.key, value: item.key,
dataType: item.dataType, dataType: item.dataType,
isColumn: item.isColumn,
})), })),
[getLabel], [getLabel],
); );