File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/routes/(console)/organization-[organization]/wizard Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 62
62
}
63
63
64
64
$ : notifications = prefs ?.notifications ?? [];
65
+
66
+ const sortedRegions = $regions .regions .sort ((regionA , regionB ) => {
67
+ if (regionA .disabled >= regionB .disabled ) {
68
+ return 1 ;
69
+ }
70
+ return - 1 ;
71
+ });
65
72
</script >
66
73
67
74
<WizardStep >
73
80
<ul
74
81
class =" grid-box u-margin-block-start-16"
75
82
style =" --p-grid-item-size:12em; --p-grid-item-size-small-screens:12rem; --grid-gap: 1rem;" >
76
- {#each $regions .regions .sort ((regionA , regionB ) => {
77
- if (regionA .disabled >= regionB .disabled ) {
78
- return 1 ;
79
- }
80
- return - 1 ;
81
- }) as region , index (region .$id )}
83
+ {#each sortedRegions as region , index (region .$id )}
82
84
<li >
83
85
<RegionCard
84
86
name =" region"
You can’t perform that action at this time.
0 commit comments