fix(default): resolve v1 frontend issue regressions

Fix v1 frontend regressions across channel forms, dashboard charts, wallet history, payment callbacks, invite links, API key groups, rate-limit errors, and usage-log scrolling.

Fixes #4715
Fixes #4618
Fixes #4699
Fixes #4651
Fixes #4637
Fixes #4682
Fixes #4691
Fixes #4565
Fixes #4334
This commit is contained in:
CaIon
2026-05-11 11:25:05 +08:00
parent 5fa103fa5b
commit ba474393fb
27 changed files with 267 additions and 41 deletions
+1 -4
View File
@@ -401,9 +401,6 @@ func GetChannelById(id int, selectAll bool) (*Channel, error) {
if err != nil {
return nil, err
}
if channel == nil {
return nil, errors.New("channel not found")
}
return channel, nil
}
@@ -758,7 +755,7 @@ func EditChannelByTag(tag string, newTag *string, modelMapping *string, models *
updateData.Tag = newTag
updatedTag = *newTag
}
if modelMapping != nil && *modelMapping != "" {
if modelMapping != nil {
updateData.ModelMapping = modelMapping
}
if models != nil && *models != "" {