fix
This commit is contained in:
parent
a62deeef5d
commit
f9dedc06d6
@ -22,6 +22,7 @@ export function ReviewPoliciesScreen(): VNode {
|
|||||||
reducer.currentReducerState.authentication_methods ?? [];
|
reducer.currentReducerState.authentication_methods ?? [];
|
||||||
const policies = reducer.currentReducerState.policies ?? [];
|
const policies = reducer.currentReducerState.policies ?? [];
|
||||||
|
|
||||||
|
|
||||||
if (editingPolicy !== undefined) {
|
if (editingPolicy !== undefined) {
|
||||||
return (
|
return (
|
||||||
<EditPoliciesScreen
|
<EditPoliciesScreen
|
||||||
@ -60,7 +61,7 @@ export function ReviewPoliciesScreen(): VNode {
|
|||||||
<div class="block" style={{ justifyContent: "flex-end" }}>
|
<div class="block" style={{ justifyContent: "flex-end" }}>
|
||||||
<button
|
<button
|
||||||
class="button is-success"
|
class="button is-success"
|
||||||
onClick={() => setEditingPolicy(policies.length + 1)}
|
onClick={() => setEditingPolicy(policies.length)}
|
||||||
>
|
>
|
||||||
Add new policy
|
Add new policy
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user