f05026bd2852080fcd558b9a2850dda56a91d14b — Louis Solofrizzo 4 months ago 099618c master
web: Skip empty keys for rendering

Signed-off-by: Louis Solofrizzo <lsolofrizzo@online.net>
1 files changed, 4 insertions(+), 0 deletions(-)

M web/main.go
M web/main.go => web/main.go +4 -0
@@ 82,6 82,10 @@ var entry Entry
  
  			key := strings.ReplaceAll(object.Key, Config.S3.GoodPrefix, "")
+ 			if key == "" {
+ 				continue
+ 			}
+ 
  			DB.Find(&entry, "name = ?", key)
  			if entry.ID == 0 {
  				entry.Name = key