Skip to content

Commit

Permalink
updated start onboarding fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
vbihun committed Apr 30, 2024
1 parent da89ef5 commit 577e1f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/ProjectsImportTable/buildTableHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const buildTableHead = ({
<OwnerTeamHeadWrapper>Owner team</OwnerTeamHeadWrapper>
</SpotlightTarget>
<SpotlightTransition>
{isSpotlightActive && (
{isSpotlightActive && !isLoading && (
<Spotlight
actions={[
{
Expand Down
9 changes: 2 additions & 7 deletions ui/src/components/SelectImportPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const SelectImportPage = () => {
const [search, setSearch] = useState<string>();
const [isSpotlightActive, setIsSpotlightActive] = useState(false);

const startOnboarding = async () => {
const startOnboarding = () => {
getTeamOnboarding()
.then(({ data, success, errors }) => {
if (success && !data?.isTeamOnboardingCompleted) {
Expand Down Expand Up @@ -155,14 +155,9 @@ export const SelectImportPage = () => {

useEffect(() => {
fetchGroups();
startOnboarding();
}, []);

useEffect(() => {
if (!isProjectsLoading && !isGroupsLoading) {
startOnboarding();
}
}, [isProjectsLoading, isGroupsLoading]);

const onSelectAllItems = (filteredProjects: ProjectImportSelection[], isAllItemsSelected: boolean) => {
setProjects((prevProjects) =>
prevProjects.map((project) => {
Expand Down

0 comments on commit 577e1f4

Please sign in to comment.