Skip to content

Commit b2dcc63

Browse files
committed
lint
1 parent 19a55bc commit b2dcc63

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

apps/code/src/renderer/api/posthogClient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ export class PostHogAPIClient {
167167
});
168168
}
169169

170-
async listOrgProjects(orgId: string): Promise<{ id: number; name: string }[]> {
170+
async listOrgProjects(
171+
orgId: string,
172+
): Promise<{ id: number; name: string }[]> {
171173
const url = new URL(
172174
`${this.api.baseUrl}/api/organizations/${orgId}/projects/`,
173175
);

apps/code/src/renderer/features/auth/stores/authStore.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,7 @@ async function buildOrgProjectsMap(
195195

196196
const entries = await Promise.all(
197197
orgs.map(async (org) => {
198-
const projects = await client
199-
.listOrgProjects(org.id)
200-
.catch(() => []);
198+
const projects = await client.listOrgProjects(org.id).catch(() => []);
201199
return [
202200
org.id,
203201
{

apps/code/src/renderer/features/projects/hooks/useProjects.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
2-
useAuthStore,
32
type OrgProjects,
3+
useAuthStore,
44
} from "@features/auth/stores/authStore";
55
import { logger } from "@utils/logger";
66
import { useEffect, useMemo } from "react";

apps/code/src/renderer/features/sidebar/components/ProjectSwitcher.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { useAuthStore } from "@features/auth/stores/authStore";
22
import { Command } from "@features/command/components/Command";
33
import { useProjects } from "@features/projects/hooks/useProjects";
4-
import { useMeQuery } from "@hooks/useMeQuery";
54
import { useSettingsDialogStore } from "@features/settings/stores/settingsDialogStore";
5+
import { useMeQuery } from "@hooks/useMeQuery";
66
import {
77
ArrowSquareOut,
88
CaretDown,
@@ -56,12 +56,8 @@ export function ProjectSwitcher() {
5656
const cloudRegion = useAuthStore((s) => s.cloudRegion);
5757
const selectProject = useAuthStore((s) => s.selectProject);
5858
const logout = useAuthStore((s) => s.logout);
59-
const {
60-
groupedProjects,
61-
currentProject,
62-
currentProjectId,
63-
isLoading,
64-
} = useProjects();
59+
const { groupedProjects, currentProject, currentProjectId, isLoading } =
60+
useProjects();
6561
const { data: currentUser } = useMeQuery();
6662

6763
const handleProjectSelect = (projectId: number) => {

0 commit comments

Comments
 (0)