From d5f2d92e8e1f0373da1b9bc70c54f7e96c152b9d Mon Sep 17 00:00:00 2001 From: TwiN Date: Tue, 1 Jul 2025 18:04:37 -0400 Subject: [PATCH] fix(ui): Explicitly omit MaximumNumberOfResults from being parsed to yaml in UI config --- config/ui/ui.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/ui/ui.go b/config/ui/ui.go index 1055a6b0..cb52662c 100644 --- a/config/ui/ui.go +++ b/config/ui/ui.go @@ -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 {