fix(ui): Explicitly omit MaximumNumberOfResults from being parsed to yaml in UI config

This commit is contained in:
TwiN
2025-07-01 18:04:37 -04:00
parent 20d1011a20
commit d5f2d92e8e

View File

@@ -35,7 +35,10 @@ type Config struct {
CustomCSS string `yaml:"custom-css,omitempty"` // Custom CSS to include in the page
DarkMode *bool `yaml:"dark-mode,omitempty"` // DarkMode is a flag to enable dark mode by default
MaximumNumberOfResults int // MaximumNumberOfResults to display on the page, it's not configurable because we're passing it from the storage config
//////////////////////////////////////////////
// Non-configurable - used for UI rendering //
//////////////////////////////////////////////
MaximumNumberOfResults int `yaml:"-"` // MaximumNumberOfResults to display on the page, it's not configurable because we're passing it from the storage config
}
func (cfg *Config) IsDarkMode() bool {