diff options
author | Sebastian <sebasjm@gmail.com> | 2022-06-03 12:17:51 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-06-03 12:17:51 -0300 |
commit | 78b55181853b93363b325715207835b11f8c9ad2 (patch) | |
tree | 47ed0d3323c84b22d6f750e5baa036c7b12715a5 /packages | |
parent | d2563c16473b2848ecf8a45474dd43983faceac0 (diff) |
do not use selection, no need
Diffstat (limited to 'packages')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx index 45d8e46f3..2d1a51aa3 100644 --- a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx @@ -78,14 +78,12 @@ export function SecretSelectionScreen(): VNode { hideNext="Please select version to recover" > <p>Found versions:</p> - {policies.map((x) => ( + {policies.map((version) => ( <div> - {x.policy_hash} / {x.secret_name} + {version.policy_hash} / {version.secret_name} <button onClick={async () => { - await reducer.transition("select_version", { - selection: x, - }); + await reducer.transition("select_version", version); }} > Recover |