ignore: fix stuff

This commit is contained in:
Dax Raad
2025-08-30 01:19:03 -04:00
parent 52b3eddeee
commit b54aa65f5f
2 changed files with 5 additions and 5 deletions

View File

@@ -17,8 +17,8 @@ export const AuthClient = createClient({
export const getActor = query(async (): Promise<Actor.Info> => { export const getActor = query(async (): Promise<Actor.Info> => {
"use server" "use server"
const evt = getRequestEvent() const evt = getRequestEvent()
console.log(evt?.request.url) if (!evt) throw new Error("No request event")
const url = new URL(evt!.request.headers.get("referer") ?? evt!.request.url) const url = new URL(evt.request.headers.has("x-server-id") ? evt.request.headers.get("referer")! : evt.request.url)
const auth = await useAuthSession() const auth = await useAuthSession()
const splits = url.pathname.split("/").filter(Boolean) const splits = url.pathname.split("/").filter(Boolean)
if (splits[0] !== "workspace") { if (splits[0] !== "workspace") {

View File

@@ -167,7 +167,7 @@ const dummyApiKeyData = [
}, },
] ]
export default function() { export default function () {
const actor = createAsync(() => getActor()) const actor = createAsync(() => getActor())
onMount(() => { onMount(() => {
console.log("MOUNTED", actor()) console.log("MOUNTED", actor())
@@ -351,7 +351,7 @@ export default function() {
</Show> </Show>
<div data-slot="api-keys-table"> <div data-slot="api-keys-table">
<Show <Show
when={dummyApiKeyData.length > 0} when={keys()?.length}
fallback={ fallback={
<div data-slot="empty-state"> <div data-slot="empty-state">
<p>Create an opencode Gateway API key</p> <p>Create an opencode Gateway API key</p>
@@ -368,7 +368,7 @@ export default function() {
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<For each={dummyApiKeyData}> <For each={keys()!}>
{/* Real data: keys() */} {/* Real data: keys() */}
{(key) => ( {(key) => (
<tr> <tr>