Skip to content

Commit c682c20

Browse files
committed
clean up
1 parent b4424c6 commit c682c20

File tree

4 files changed

+3
-22
lines changed

4 files changed

+3
-22
lines changed

.github/workflows/jawn-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222
US_REGION: us-west-2
2323
EU_REGION: eu-west-1
2424
AWS_ACCOUNT_ID: 849596434884
25-
US_TASK_DEFINITION_REVISION: 56
25+
US_TASK_DEFINITION_REVISION: 57
2626
EU_TASK_DEFINITION_REVISION: 31
2727

2828
jobs:

web/components/layout/auth/authLayout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ const AuthLayout = (props: AuthLayoutProps) => {
9999
"/settings/providers",
100100
"/settings/billing",
101101
"/credits",
102-
"/settings",
103102
];
104103

105104
const isOnAllowedPage = allowedPagesDuringOnboarding.some((path) =>

web/components/templates/quickstart/quickstartPage.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,6 @@ const QuickstartPage = () => {
6161
"quickstartKey",
6262
undefined,
6363
);
64-
65-
useEffect(() => {
66-
if (!org?.currentOrg?.id) {
67-
org?.refetchOrgs();
68-
}
69-
}, [org]);
70-
7164
const [isProviderSheetOpen, setIsProviderSheetOpen] = useState(false);
7265
const [isPaymentModalOpen, setIsPaymentModalOpen] = useState(false);
7366
const [isHelixDialogOpen, setIsHelixDialogOpen] = useState(false);
@@ -206,8 +199,6 @@ const QuickstartPage = () => {
206199

207200
return (
208201
<div className="flex min-h-screen flex-col gap-8 p-6">
209-
{`${org?.currentOrg?.id}_quickstartKey`}
210-
{quickstartKey}
211202
<div className="mx-auto mt-4 w-full max-w-4xl items-start">
212203
<H2>Quickstart</H2>
213204
<P className="mt-2 text-sm text-muted-foreground">

web/services/hooks/localStorage.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useState, useEffect, useCallback, useMemo } from "react";
1+
import { useState, useEffect, useCallback } from "react";
22
import { useOrg } from "../../components/layout/org/organizationContext";
33
import { logger } from "@/lib/telemetry/logger";
44

@@ -8,16 +8,7 @@ export function useLocalStorage<T>(
88
onNothingStored?: (_setStored: (_t: T) => void) => void,
99
): [T, (_t: T) => void] {
1010
const org = useOrg();
11-
useEffect(() => {
12-
if (!org?.currentOrg?.id) {
13-
org?.refetchOrgs();
14-
}
15-
}, [org]);
16-
17-
const orgId = useMemo(() => {
18-
const id = org?.currentOrg?.id ?? "";
19-
return id;
20-
}, [org]);
11+
const orgId = org?.currentOrg?.id ?? "";
2112
const orgKey = `${orgId}_${key}`;
2213
const [storedValue, setStoredValue] = useState<T>(initialValue);
2314

0 commit comments

Comments
 (0)