From bfcfad819b39ce0f7265ec6c8ce1e22f12bef342 Mon Sep 17 00:00:00 2001 From: Louis Cherel Date: Wed, 17 Oct 2018 11:48:53 +0200 Subject: [PATCH] services/NotificationSettings: fix #219 --- src/services/NotificationSettings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/NotificationSettings.ts b/src/services/NotificationSettings.ts index a1568c1a..1ff14b34 100644 --- a/src/services/NotificationSettings.ts +++ b/src/services/NotificationSettings.ts @@ -39,7 +39,7 @@ class NotificationSettings extends BaseService { } all({ projectId, groupId }: NotificationSettingsOptions = {}) { - let url; + let url = ''; if (projectId) { url += `projects/${encodeURIComponent(projectId)}/`; @@ -51,7 +51,7 @@ class NotificationSettings extends BaseService { } edit(options, { projectId, groupId }: NotificationSettingsOptions = {}) { - let url; + let url = ''; if (projectId) { url += `projects/${encodeURIComponent(projectId)}/`;