misc: fixes.

This commit is contained in:
Darshan
2025-05-22 10:04:58 +05:30
parent ba31bd7ae4
commit 63b1b8d89a
3 changed files with 3 additions and 3 deletions
@@ -33,7 +33,6 @@
$: avatars = $members.memberships?.map((m) => m.userName || m.userEmail) ?? [];
$: organizationId = page.params.organization;
$: path = `${base}/organization-${organizationId}`;
$: console.log($scopes);
$: tabs = [
{
href: path,
@@ -86,7 +86,7 @@
if (page.url.searchParams.has('runtime')) {
runtime = page.url.searchParams.get('runtime') as Runtime;
} else {
runtime = matchingRuntimes[0];
runtime = matchingRuntimes[0] as Runtime;
}
}
});
@@ -11,6 +11,7 @@
import { onMount } from 'svelte';
import { project } from '../store';
import { canWriteProjects } from '$lib/stores/roles';
import { getProjectEndpoint } from '$lib/helpers/project';
const endpoint = sdk.forConsole.client.config.endpoint;
@@ -45,7 +46,7 @@
Access Appwrite services using this project's API Endpoint and Project ID.
<svelte:fragment slot="aside">
<CopyInput label="Project ID" value={$project.$id} />
<CopyInput label="API Endpoint" value={endpoint} />
<CopyInput label="API Endpoint" value={getProjectEndpoint()} />
</svelte:fragment>
<svelte:fragment slot="actions">
<Button