From 7a759b2701199600f7e0bb9b9e01d85574277a01 Mon Sep 17 00:00:00 2001 From: jasquat Date: Mon, 13 Feb 2023 10:25:03 -0500 Subject: [PATCH] avoid endless redirects on error on authentication list page w/ burnettk --- spiffworkflow-frontend/src/routes/AuthenticationList.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spiffworkflow-frontend/src/routes/AuthenticationList.tsx b/spiffworkflow-frontend/src/routes/AuthenticationList.tsx index 3e585b99..1a4a030b 100644 --- a/spiffworkflow-frontend/src/routes/AuthenticationList.tsx +++ b/spiffworkflow-frontend/src/routes/AuthenticationList.tsx @@ -1,13 +1,11 @@ import { useEffect, useState } from 'react'; // @ts-ignore import { Table } from '@carbon/react'; -import useAPIError from '../hooks/UseApiError'; import { AuthenticationItem } from '../interfaces'; import HttpService from '../services/HttpService'; import UserService from '../services/UserService'; export default function AuthenticationList() { - const { addError } = useAPIError(); const [authenticationList, setAuthenticationList] = useState< AuthenticationItem[] | null >(null); @@ -25,9 +23,8 @@ export default function AuthenticationList() { HttpService.makeCallToBackend({ path: `/authentications`, successCallback: processResult, - failureCallback: addError, }); - }, [addError]); + }, []); const buildTable = () => { if (authenticationList) {