Skip to content

Commit

Permalink
fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Mar 24, 2022
1 parent ba88ada commit 1e70565
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ export function AnalyticsIdSelector({ setAnalyticsId, jobsOnly = false }: Props)
const isDFA = isDataFrameAnalyticsConfigs(item);
const itemId = isDFA ? item.id : item.model_id;
const isBuiltInModel = isDFA ? false : item.tags.includes(BUILT_IN_MODEL_TAG);
return (selected === undefined || selected?.job_id === itemId || selected?.model_id === itemId) && !isBuiltInModel;
return (
(selected === undefined || selected?.job_id === itemId || selected?.model_id === itemId) &&
!isBuiltInModel
);
},
onSelectionChange: (selectedItem: TableItem[]) => {
const item = selectedItem[0];
Expand Down

0 comments on commit 1e70565

Please sign in to comment.