1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-18 00:08:17 +00:00

Merge pull request #162 from JonCrowther/count-race-condition

Fix race condition in debounceCounts
This commit is contained in:
Jonathan Crowther
2024-03-14 10:52:28 -04:00
committed by GitHub

View File

@@ -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{