Skip to content

Commit

Permalink
feat: changes to UI to allow for no extensions (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
samip5 authored Jan 18, 2025
1 parent 85b5d1d commit 18ca889
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/frontend/http/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"context"
"errors"
"fmt"
"go.uber.org/zap"
"html/template"
"net/http"
"net/url"
Expand Down Expand Up @@ -358,7 +359,10 @@ func (f *Frontend) wizardArch(_ context.Context, params WizardParams) (string, a
func (f *Frontend) wizardExtensions(ctx context.Context, params WizardParams) (string, any, url.Values, error) {
extensions, err := f.getOfficialExtensions(ctx, params.Version)
if err != nil {
return "", nil, nil, err
f.logger.Error("Error getting official extensions", zap.Error(err))

// Proceed with an empty extensions list
extensions = []artifacts.ExtensionRef{} // Initialize as an empty slice
}

return "wizard-extensions",
Expand Down

0 comments on commit 18ca889

Please sign in to comment.