Skip to content

Commit

Permalink
[React@18 failing tests] Dataset quality handles user privileges (ela…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant authored Oct 25, 2024
1 parent 5c40627 commit 4d36994
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,16 @@ export const useRedirectLink = <T extends BasicDataStream>({
share.url.locators.get<SingleDatasetLocatorParams>(SINGLE_DATASET_LOCATOR_ID);

const isLogsExplorerAppAccessible = useObservable(
application.applications$.pipe(
map(
(apps) =>
(apps.get(OBSERVABILITY_LOGS_EXPLORER_APP_ID)?.status ?? AppStatus.inaccessible) ===
AppStatus.accessible
)
useMemo(
() =>
application.applications$.pipe(
map(
(apps) =>
(apps.get(OBSERVABILITY_LOGS_EXPLORER_APP_ID)?.status ?? AppStatus.inaccessible) ===
AppStatus.accessible
)
),
[application.applications$]
),
false
);
Expand Down

0 comments on commit 4d36994

Please sign in to comment.