From e4342872b52b88c232952317041fb4426faceb9b Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Tue, 3 Oct 2023 13:28:15 -0400 Subject: [PATCH] 15768: changed navigateTo to take a string only Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- src/store/navigation/navigation-action.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/store/navigation/navigation-action.ts b/src/store/navigation/navigation-action.ts index b3bd32909d..61720b56ab 100644 --- a/src/store/navigation/navigation-action.ts +++ b/src/store/navigation/navigation-action.ts @@ -20,9 +20,7 @@ export const navigationNotAvailable = (id: string) => kind: SnackbarKind.ERROR, }); -export const navigateTo = (inputUuid: any) => async (dispatch: Dispatch, getState: () => RootState) => { - const uuid = typeof inputUuid === "string" ? inputUuid : inputUuid[0]; - +export const navigateTo = (uuid: string) => async (dispatch: Dispatch, getState: () => RootState) => { for (const navToFn of pluginConfig.navigateToHandlers) { if (navToFn(dispatch, getState, uuid)) { return; -- 2.30.2