mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
fix(console): should not check duplicated keys when key is empty (#3911)
This commit is contained in:
parent
387e04ec4a
commit
2b409fcefe
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ function CustomHeaderField() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (headers.filter(({ key: _key }) => _key === key).length > 1) {
|
if (headers.filter(({ key: _key }) => _key.length > 0 && _key === key).length > 1) {
|
||||||
return t('webhook_details.settings.key_duplicated_error');
|
return t('webhook_details.settings.key_duplicated_error');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue