Skip to content

Commit

Permalink
lib/model: Fixed adding empty items to device list (fixes #8646) (#8647)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratio2 committed Dec 6, 2022
1 parent d40d9d5 commit 0573800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model/model.go
Expand Up @@ -1278,7 +1278,7 @@ func (m *model) ClusterConfig(deviceID protocol.DeviceID, cm protocol.ClusterCon
for _, fcfg := range folders {
cfg.Folders = append(cfg.Folders, fcfg)
}
cfg.Devices = make([]config.DeviceConfiguration, len(devices))
cfg.Devices = make([]config.DeviceConfiguration, 0, len(devices))
for _, dcfg := range devices {
cfg.Devices = append(cfg.Devices, dcfg)
}
Expand Down

0 comments on commit 0573800

Please sign in to comment.