We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d8d122 commit 544ec07Copy full SHA for 544ec07
1 file changed
src/lib/helpers/regions.ts
@@ -15,8 +15,8 @@ export function filterRegions(regions: Models.ConsoleRegion[]): RegionOption[] {
15
return regions
16
.filter((region) => region.$id !== 'default')
17
.sort((a, b) => {
18
- if (a.disabled && !b.disabled) return 1;
19
- if (!a.disabled && b.disabled) return -1;
+ if (a.available && !b.available) return 1;
+ if (!a.available && b.available) return -1;
20
return a.name.localeCompare(b.name);
21
})
22
.map((region) => ({
0 commit comments