fix: instances should not be able to sort

This commit is contained in:
Rodrigo Antinarelli 2020-06-26 12:20:18 -03:00
parent 5180eb127d
commit ec48801be7
2 changed files with 11 additions and 3 deletions

View File

@ -21,13 +21,21 @@ const InputLabelWrapper = ({
className,
children,
}) => {
const onClickHandler = e => {
if (!isSortable) {
return;
}
onLabelClick(e);
};
return (
<label className={classnames(baseLabelClassName, className)}>
<span
role="button"
className={spanClassName}
onClick={onLabelClick}
onKeyDown={onLabelClick}
onClick={onClickHandler}
onKeyDown={onClickHandler}
tabIndex="0"
>
{label}

View File

@ -53,7 +53,7 @@ const filtersMeta = [
name: 'instances',
displayName: 'Instances',
inputType: 'None',
isSortable: true,
isSortable: false,
gridCol: 2,
},
];