From f3b4c00d7f2397b56ecc9119be68dba41afc2a8d Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 24 Sep 2019 18:08:59 +0200 Subject: [PATCH] Fix undefined Constants --- www/teams/inner.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/teams/inner.js b/www/teams/inner.js index 7ecbc0e2e..4560f03ab 100644 --- a/www/teams/inner.js +++ b/www/teams/inner.js @@ -6,6 +6,7 @@ define([ '/common/common-interface.js', '/common/common-ui-elements.js', '/common/common-feedback.js', + '/common/common-constants.js', '/bower_components/nthen/index.js', '/common/sframe-common.js', '/common/proxy-manager.js', @@ -25,6 +26,7 @@ define([ UI, UIElements, Feedback, + Constants, nThen, SFCommon, ProxyManager, @@ -610,6 +612,7 @@ define([ var todo = function () { var newName = $input.val(); + if (!newName.trim()) { return; } $spinner.show(); APP.module.execCommand('GET_TEAM_METADATA', { teamId: APP.team