0
Fork 0
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:
Xiao Yijun 2023-05-26 22:20:13 +08:00 committed by GitHub
parent 387e04ec4a
commit 2b409fcefe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');
} }