Allow update webhook label with an empty string (#11479)

* Allow update webhook label with an empty string

* Adding comment to explain the label check
This commit is contained in:
Evelyn Stender
2019-11-16 16:52:27 +00:00
committed by Matteo Pagliazzi
parent eca1d8501c
commit 5f0672f3a6
2 changed files with 22 additions and 1 deletions

View File

@@ -179,7 +179,8 @@ api.updateWebhook = {
webhook.url = url;
}
if (label) {
// using this check to allow the setting of empty labels
if (label !== null && label !== undefined) {
webhook.label = label;
}