Skip to content

Commit

Permalink
Fix default value for expiration for setup keys (#221)
Browse files Browse the repository at this point in the history
* fix initial value for setup keys so default works

* fix initial value for setup keys so default works
  • Loading branch information
pascal-fischer authored Jul 7, 2023
1 parent 79446c0 commit cb89eeb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/components/SetupKeyNew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ const SetupKeyNew = () => {
form={form}
onValuesChange={onChange}
initialValues={{
expires_in: 7,
usage_limit: 1,
}}
>
Expand Down
1 change: 1 addition & 0 deletions src/views/SetupKeys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ export const SetupKeys = () => {
name: "",
type: "one-off",
auto_groups: autoGroups,
expires_in: 7,
} as SetupKey)
);
};
Expand Down

0 comments on commit cb89eeb

Please sign in to comment.