bugfix: #337 - Entity overwriting (#382)

This commit is contained in:
James Read 2024-08-09 20:04:50 +01:00 committed by GitHub
parent 7a7a07d9ad
commit 1fe0e49adb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ func SetupEntityFileWatchers(cfg *config.Config) {
configDir = configDirVar
}
for _, ef := range cfg.Entities {
for entityIndex, _ := range cfg.Entities { // #337 - iterate by key, not by value
ef := cfg.Entities[entityIndex]
p := ef.File
if !filepath.IsAbs(p) {