diff --git a/AUTHORS.md b/AUTHORS.md index acf0a4bbd..edc560bf1 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -9,6 +9,7 @@ - Christian Kraus - Christoph Wurst - Daniel Kesselberg +- Dominik Kuzila - Gary Kim - Georg Ehrke - Greta Doci diff --git a/src/store/groups.js b/src/store/groups.js index 4da839e2d..44de3e214 100644 --- a/src/store/groups.js +++ b/src/store/groups.js @@ -184,6 +184,9 @@ const actions = { * @param {string} groupName the name of the group */ addGroup(context, groupName) { + if (!groupName || groupName.trim() === '') { + throw new Error('Group name cannot be empty') + } context.commit('addGroup', groupName) }, }