services/NotificationSettings: fix #219

This commit is contained in:
Louis Cherel 2018-10-17 11:48:53 +02:00
parent c56e0525aa
commit bfcfad819b

View File

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