Skip to content

Commit

Permalink
Reduce env var value UI limit to 32k-1 for consistency
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Keromnes <janx@linux.com>
  • Loading branch information
randomir and jankeromnes authored Feb 16, 2022
1 parent 52916be commit 9cc9a32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/dashboard/src/settings/EnvironmentVariables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ export default function EnvVars() {
if (variable.value.trim() === '') {
return 'Value must not be empty.';
}
if (variable.value.length > 32768) {
return 'Value too long. Maximum value length is 32768 characters.';
if (variable.value.length > 32767) {
return 'Value too long. Maximum value length is 32767 characters.';
}
if (pattern.trim() === '') {
return 'Scope must not be empty.';
Expand Down

0 comments on commit 9cc9a32

Please sign in to comment.