Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <ihailong@amazon.com>
  • Loading branch information
Hailong-am committed Oct 9, 2024
1 parent 97b0dd6 commit 9f7fdc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public/pages/Overview/containers/Overview/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ export const Overview: React.FC<OverviewProps> = (props) => {
[saContext?.services, context]
);
const currentNavGroup = useObservable(getChrome().navGroup.getCurrentNavGroup$());
const isSecurityAnalyticsUesCase = currentNavGroup?.id === SECURITY_ANALYTICS_USE_CASE_ID;
const isSecurityAnalyticsUseCase = currentNavGroup?.id === SECURITY_ANALYTICS_USE_CASE_ID;

useEffect(() => {
setBreadcrumbs(isSecurityAnalyticsUesCase ? [ BREADCRUMBS.OVERVIEW] : [{...BREADCRUMBS.OVERVIEW, text: 'Security Analytics overview'}]);
setBreadcrumbs(isSecurityAnalyticsUseCase ? [ BREADCRUMBS.OVERVIEW] : [{...BREADCRUMBS.OVERVIEW, text: 'Security Analytics overview'}]);
overviewViewModelActor.registerRefreshHandler(updateState, true /* allowPartialResults */);
overviewViewModelActor.registerRefreshHandler(
onLoadingComplete,
false /* allowPartialResults */
);
}, [isSecurityAnalyticsUesCase]);
}, [isSecurityAnalyticsUseCase]);

useEffect(() => {
const abortController = new AbortController();
Expand Down

0 comments on commit 9f7fdc8

Please sign in to comment.