Skip to content

Commit

Permalink
fix(ui/token): default namespaced token does not get created without …
Browse files Browse the repository at this point in the history
…selecting 'default' (#2438)

Refs: #2437
  • Loading branch information
erka authored Nov 22, 2023
1 parent cd00b8b commit 8164c5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/src/components/tokens/TokenForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ const TokenForm = forwardRef((props: TokenFormProps, ref: any) => {
className="text-violet-600 border-gray-300 h-4 w-4 rounded focus:ring-violet-600"
onChange={(e) => {
setNamespaceScoped(e.target.checked);
formik.setFieldValue(
'namespaceKey',
e.target.checked ? selectedNamespace.key : ''
);
}}
/>
</div>
Expand Down

0 comments on commit 8164c5c

Please sign in to comment.