diff --git a/pkg/resources/counts/counts.go b/pkg/resources/counts/counts.go index 9a210eab..d4e7d9d9 100644 --- a/pkg/resources/counts/counts.go +++ b/pkg/resources/counts/counts.go @@ -181,7 +181,7 @@ func (s *Store) Watch(apiOp *types.APIRequest, schema *types.APISchema, w types. counts[schema.ID] = itemCount changedCount := map[string]ItemCount{ - schema.ID: itemCount, + schema.ID: *itemCount.DeepCopy(), } result <- Count{