Skip to content

Commit

Permalink
[Security Solution][Endpoint][Cases] Add cases path to sourcerer init…
Browse files Browse the repository at this point in the history
… so browser fields load (#116464) (#116968)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Candace Park <56409205+parkiino@users.noreply.github.com>
  • Loading branch information
kibanamachine and parkiino authored Nov 1, 2021
1 parent cf7634d commit 0c34705
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { SourcererScopeName } from '../../store/sourcerer/model';
import { useIndexFields } from '../source';
import { useUserInfo } from '../../../detections/components/user_info';
import { timelineSelectors } from '../../../timelines/store/timeline';
import { ALERTS_PATH, RULES_PATH, UEBA_PATH } from '../../../../common/constants';
import { ALERTS_PATH, CASES_PATH, RULES_PATH, UEBA_PATH } from '../../../../common/constants';
import { TimelineId } from '../../../../common';
import { useDeepEqualSelector } from '../../hooks/use_selector';

Expand Down Expand Up @@ -129,7 +129,7 @@ export const getScopeFromPath = (
pathname: string
): SourcererScopeName.default | SourcererScopeName.detections => {
return matchPath(pathname, {
path: [ALERTS_PATH, `${RULES_PATH}/id/:id`, `${UEBA_PATH}/:id`],
path: [ALERTS_PATH, `${RULES_PATH}/id/:id`, `${UEBA_PATH}/:id`, `${CASES_PATH}/:detailName`],
strict: false,
}) == null
? SourcererScopeName.default
Expand Down

0 comments on commit 0c34705

Please sign in to comment.