mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
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:
committed by
Matteo Pagliazzi
parent
eca1d8501c
commit
5f0672f3a6
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user