From 091c026a46714af377b49b32447b672da8fea763 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Tue, 9 Nov 2021 11:41:41 +0800 Subject: [PATCH] fix: hide file.data in config --- configui.go | 2 +- file.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configui.go b/configui.go index c41ce1a..e0cd085 100644 --- a/configui.go +++ b/configui.go @@ -58,7 +58,7 @@ type ConfigUI struct { Files []*File `json:"files"` fileIndex map[string]int Actions []Action `json:"actions"` - Integrations []*Integration `json:"integrations"` + Integrations []*Integration `json:"integrations,omitempty"` ResultBellow bool `json:"result_bellow"` HideConfig bool `json:"hide_config"` diff --git a/file.go b/file.go index b6e2b75..38616c2 100644 --- a/file.go +++ b/file.go @@ -21,7 +21,7 @@ type File struct { Order int `json:"order"` // used for parsing post data - Data string `json:"data"` + Data string `json:"data,omitempty"` lock sync.RWMutex `json:"-"` owner *ConfigUI `json:"-"`