From c9cd7ed63228533dc7012d65d157d7678cd64c34 Mon Sep 17 00:00:00 2001 From: Robert Sun <107655677+rsun19@users.noreply.github.com> Date: Thu, 13 Jun 2024 14:30:21 -0400 Subject: [PATCH] first round of updates to disable type assertions --- frontend/src/concepts/pipelines/context/PipelinesContext.tsx | 2 +- frontend/src/concepts/projects/ProjectsContext.tsx | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/concepts/pipelines/context/PipelinesContext.tsx b/frontend/src/concepts/pipelines/context/PipelinesContext.tsx index c207859b15..c58d9c74b8 100644 --- a/frontend/src/concepts/pipelines/context/PipelinesContext.tsx +++ b/frontend/src/concepts/pipelines/context/PipelinesContext.tsx @@ -109,7 +109,7 @@ export const PipelineContextProvider = conditionalArea {}); enableDevTools([client]); } diff --git a/frontend/src/concepts/projects/ProjectsContext.tsx b/frontend/src/concepts/projects/ProjectsContext.tsx index 9acf1b3ef0..97ed7b2265 100644 --- a/frontend/src/concepts/projects/ProjectsContext.tsx +++ b/frontend/src/concepts/projects/ProjectsContext.tsx @@ -61,12 +61,8 @@ const isError = (obj: unknown): obj is Error => const ProjectsContextProvider: React.FC = ({ children }) => { const [preferredProject, setPreferredProject] = React.useState(null); -<<<<<<< HEAD - const [projectData, loaded, loadError] = useProjects(); -======= const [projectData, loaded, error] = useProjects(); const loadError = isError(error) ? error : undefined; ->>>>>>> 933956ee (first round of updates to disable type assertions) const { dashboardNamespace } = useDashboardNamespace(); const { projects, dataScienceProjects, modelServingProjects, nonActiveProjects } = React.useMemo(