Skip to content

Commit

Permalink
fix(e2e): 🐛 Pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed May 14, 2022
1 parent 4d9796c commit 731e646
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/builder/components/dashboard/FolderContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const FolderContent = ({ folder }: Props) => {
position: 'top-right',
status: 'error',
})

const {
folders,
isLoading: isFolderLoading,
Expand Down
3 changes: 2 additions & 1 deletion apps/builder/contexts/WorkspaceContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const WorkspaceContext = ({ children }: { children: ReactNode }) => {
)?.role

useEffect(() => {
if (!workspaces || workspaces.length === 0) return
if (!workspaces || workspaces.length === 0 || currentWorkspace) return
const lastWorspaceId = localStorage.getItem('workspaceId')
const defaultWorkspace = lastWorspaceId
? workspaces.find(byId(lastWorspaceId))
Expand Down Expand Up @@ -105,6 +105,7 @@ export const WorkspaceContext = ({ children }: { children: ReactNode }) => {
mutate({
workspaces: [...workspaces, newWorkspace],
})
console.log(newWorkspace)
setCurrentWorkspace(newWorkspace)
}

Expand Down
1 change: 0 additions & 1 deletion apps/builder/pages/api/customDomains/[domain].ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
where: { name: domain },
})

await deleteDomainOnVercel(domain)
return res.send({ customDomains })
}
return methodNotAllowed(res)
Expand Down

0 comments on commit 731e646

Please sign in to comment.