Skip to content

Commit

Permalink
addresses comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dplumlee committed Feb 12, 2024
1 parent 773501e commit faaec7f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,7 @@ export const UpgradePrebuiltRulesTableContextProvider = ({
]);

const extraTabs = useMemo<EuiTabbedContentTab[]>(() => {
const activeRule =
(isJsonPrebuiltRulesDiffingEnabled || isPerFieldPrebuiltRulesDiffingEnabled) &&
previewedRule &&
filteredRules.find(({ id }) => id === previewedRule.id);
const activeRule = previewedRule && filteredRules.find(({ id }) => id === previewedRule.id);

if (!activeRule) {
return [];
Expand Down

0 comments on commit faaec7f

Please sign in to comment.