Bugfixes to admin panel, workflow view and app creator

This commit is contained in:
frikky
2021-04-18 20:48:11 +02:00
parent 033124b6ec
commit 00323689e2
8 changed files with 71 additions and 55 deletions
+9 -2
View File
@@ -436,7 +436,14 @@ const AppCreator = (props) => {
setBasedata(data)
if (data.info !== null && data.info !== undefined) {
setName(data.info.title)
if (data.info.title !== undefined && data.info.title !== null) {
if (data.info.title.length > 29) {
setName(data.info.title.slice(0, 29))
} else {
setName(data.info.title)
}
}
setDescription(data.info.description)
document.title = "Apps - "+data.info.title
@@ -2500,7 +2507,7 @@ const AppCreator = (props) => {
}
}
if (e.target.value.length > 100) {
if (e.target.value.length > 29) {
alert.error("Choose a shorter name.")
return
}