Skip to content

Commit aa113a7

Browse files
committed
unnecesary alias
1 parent de4c56d commit aa113a7

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • src/routes/(console)/project-[region]-[project]/functions/function-[function]/settings

src/routes/(console)/project-[region]-[project]/functions/function-[function]/settings/updateScopes.svelte

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
import { onMount } from 'svelte';
1111
import { func } from '../store';
1212
import { isValueOfStringEnum } from '$lib/helpers/types';
13-
import {
14-
Runtime,
15-
type ProjectKeyScopes,
16-
type ProjectKeyScopes as FunctionScopes
17-
} from '@appwrite.io/console';
13+
import { Runtime, type ProjectKeyScopes } from '@appwrite.io/console';
1814
import Scopes from '$routes/(console)/project-[region]-[project]/overview/api-keys/scopes.svelte';
1915
import { symmetricDifference } from '$lib/helpers/array';
2016
import { Link } from '$lib/elements';
@@ -43,7 +39,7 @@
4339
logging: $func.logging ?? undefined,
4440
entrypoint: $func.entrypoint || undefined,
4541
commands: $func.commands || undefined,
46-
scopes: (functionScopes as unknown as FunctionScopes[]) || undefined,
42+
scopes: functionScopes || undefined,
4743
installationId: $func.installationId || undefined,
4844
providerRepositoryId: $func.providerRepositoryId || undefined,
4945
providerBranch: $func.providerBranch || undefined,

0 commit comments

Comments
 (0)