(cherry picked from commit ec9dbdd93c)
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
This commit is contained in:
co-authored by
Gábor Farkas
parent
0f9168953b
commit
5f26262655
+1
-1
@@ -35,7 +35,7 @@ export const FromSection = ({
|
||||
// if `default` does not exist in the list of policies, we add it
|
||||
const allPoliciesWithDefault = allPolicies.some((p) => p === 'default')
|
||||
? allPolicies
|
||||
: [DEFAULT_POLICY, allPolicies];
|
||||
: [DEFAULT_POLICY, ...allPolicies];
|
||||
|
||||
return allPoliciesWithDefault.map(toSelectableValue);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user