From ec48801be71f62a5b16d25a61ce707a449b0a024 Mon Sep 17 00:00:00 2001 From: Rodrigo Antinarelli Date: Fri, 26 Jun 2020 12:20:18 -0300 Subject: [PATCH] fix: instances should not be able to sort --- .../InputLabelWrapper/InputLabelWrapper.jsx | 12 ++++++++++-- platform/viewer/src/routes/WorkList/filtersMeta.js | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/platform/ui/src/components/InputLabelWrapper/InputLabelWrapper.jsx b/platform/ui/src/components/InputLabelWrapper/InputLabelWrapper.jsx index f80dfccdb..e9b17b429 100644 --- a/platform/ui/src/components/InputLabelWrapper/InputLabelWrapper.jsx +++ b/platform/ui/src/components/InputLabelWrapper/InputLabelWrapper.jsx @@ -21,13 +21,21 @@ const InputLabelWrapper = ({ className, children, }) => { + const onClickHandler = e => { + if (!isSortable) { + return; + } + + onLabelClick(e); + }; + return (