mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-03 10:19:16 +02:00
fixed CustomName whitespace
This commit is contained in:
@@ -22,7 +22,7 @@ func GetModulesForCourseDistinct(app *pocketbase.PocketBase, c echo.Context, cou
|
||||
func replaceEmptyEntryInStringArray(modules []string, replacement string) {
|
||||
//replace empty functions with "Sonderveranstaltungen"
|
||||
for i, module := range modules {
|
||||
if functions.CheckIfOnlyWhitespace(module) {
|
||||
if functions.OnlyWhitespace(module) {
|
||||
modules[i] = replacement
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@ func replaceEmptyEntry(modules []struct {
|
||||
}, replacement string) {
|
||||
//replace empty functions with "Sonderveranstaltungen"
|
||||
for i, module := range modules {
|
||||
if functions.CheckIfOnlyWhitespace(module.Name) {
|
||||
if functions.OnlyWhitespace(module.Name) {
|
||||
modules[i].Name = replacement
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user