mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
update: safe-fallback.
This commit is contained in:
1 parent
8895e0b7db
commit
cacb2d25f8
1 file changed
+2
@@ -6,6 +6,8 @@ import { sdk } from '$lib/stores/sdk';
|
||||
|
||||
export const regions = writable<RegionList | undefined>(undefined);
|
||||
export const regionFlagUrls = derived(regions, ($regions) => {
|
||||
if (!$regions?.regions?.length) return [];
|
||||
|
||||
return $regions?.regions?.map((region) => {
|
||||
return `${sdk.forConsole.client.config.endpoint}/avatars/flags/${region.flag}?width=80&height=60&quality=100&mode=admin`;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user