fix: instances should not be able to sort

This commit is contained in:
Rodrigo Antinarelli committed 2020-06-26 12:20:18 -03:00
1 parent 5180eb127d
commit ec48801be7
2 files changed
+11 -3

No files matched your search

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