added in ThresholdProfile.Clone() to copy EeIDs

This commit is contained in:
gezimbll
2025-09-22 12:50:33 +02:00
committed by Dan Christian Bogos
parent f46ea874ba
commit 5894e0d7f3

View File

@@ -83,6 +83,10 @@ func (tp *ThresholdProfile) Clone() *ThresholdProfile {
if tp.ActivationInterval != nil {
clone.ActivationInterval = tp.ActivationInterval.Clone()
}
if tp.EeIDs != nil {
clone.EeIDs = make([]string, len(tp.EeIDs))
copy(clone.EeIDs, tp.EeIDs)
}
return clone
}