Skip to content

Commit

Permalink
first round of updates to disable type assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
rsun19 committed Jun 13, 2024
1 parent 0722fd0 commit c9cd7ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const PipelineContextProvider = conditionalArea<PipelineContextProviderPr
);
if (DEV_MODE) {
// Enables the use of this browser extension: https://github.com/SafetyCulture/grpc-web-devtools
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-function
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-function, @typescript-eslint/consistent-type-assertions
const enableDevTools = (window as any).__GRPCWEB_DEVTOOLS__ || (() => {});
enableDevTools([client]);
}
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/concepts/projects/ProjectsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,8 @@ const isError = (obj: unknown): obj is Error =>
const ProjectsContextProvider: React.FC<ProjectsProviderProps> = ({ children }) => {
const [preferredProject, setPreferredProject] =
React.useState<ProjectsContextType['preferredProject']>(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(
Expand Down

0 comments on commit c9cd7ed

Please sign in to comment.