Trim version name input (#4462)

This commit is contained in:
Daniel Shuy 2022-10-17 12:26:13 +08:00 committed by GitHub
parent 2fca8b1560
commit a3af49c631
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,8 @@ export const AppVersionsManager = function AppVersionsManager({
};
const createVersion = (versionName, createAppVersionFrom) => {
if (versionName.trim() !== '') {
versionName = versionName.trim();
if (versionName !== '') {
setIsCreatingVersion(true);
appVersionService
.create(appId, versionName, createAppVersionFrom.id)