diff --git a/src/context/instanceLoading.tsx b/src/context/instanceLoading.tsx index 429ef9b873..463bb1b529 100644 --- a/src/context/instanceLoading.tsx +++ b/src/context/instanceLoading.tsx @@ -53,6 +53,6 @@ export const InstanceLoadingProvider: FC = ({ children }) => { ); }; -export function useInstanceLoading() { +export function useInstanceLoading(): InstanceLoadingType { return useContext(InstanceLoadingContext); } diff --git a/src/pages/profiles/ProfileDetailPanelContent.tsx b/src/pages/profiles/ProfileDetailPanelContent.tsx index 6ba45e4a3b..2bf1f2bf4f 100644 --- a/src/pages/profiles/ProfileDetailPanelContent.tsx +++ b/src/pages/profiles/ProfileDetailPanelContent.tsx @@ -18,7 +18,7 @@ const ProfileDetailPanelContent: FC = ({ profile, project }) => { const usageCount = getProfileInstances( project.name, isDefaultProject, - profile?.used_by, + profile.used_by, ).length; const featuresProfiles = isProjectWithProfiles(project);