forest_admin_datasource_customizer 1.26.0 → 1.26.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21756353defebf8818cdf3af3b7acab5e9ffe7a8e5d37d00c1a2be1c76e9ebbc
4
- data.tar.gz: 84f86cdece486e5d99b73356c369a0a2e69c4aa3535b1a9949f32b7651d4cc50
3
+ metadata.gz: e4491004a6f2a8aaaf09511f42b413dfcc09537b3d4a363f02c4f36226c23c18
4
+ data.tar.gz: 1c11523da9b9e2242d0656005aca1c38b7b4eb9297ebe7eae10977adc8781831
5
5
  SHA512:
6
- metadata.gz: 7db3962f7e5625d16226b59e45c4f734a7ecdb39b048d38cd43cbe0d4b93e8481e80048bd3bbd553d1fcd33bbc5751fff119e13afebcdcdc548c0bf2cb6e234a
7
- data.tar.gz: bc5ca5727f78d5af18c3bab935063036d4070d1573365b56087f624dbbd213d1d44c151551798c254651d347141e47b3736765aeca4bdb3fdc0fa44209646e8b
6
+ metadata.gz: cda66cd5dbd2af80a68c3374c65596d0601afc33e1e96adb08083a589f4d7ddfcc7014258869d9155552be950bec3b8403db87892aeba2a14a3ce736d47b7413
7
+ data.tar.gz: '00881bbec365152ce54c693e3fb95102b760cea14e4b870ab64defe9a4db8b05ced65018b36b44059e6523293da54a2266ac48b967c0c1245917c950c00025ad'
@@ -107,9 +107,11 @@ module ForestAdminDatasourceCustomizer
107
107
  end
108
108
 
109
109
  def apply_joins_on_aggregate_result(initial_aggregation, requested_aggregation, results, fields_to_replace)
110
- return result if initial_aggregation == requested_aggregation
110
+ return results if initial_aggregation == requested_aggregation
111
111
 
112
112
  results.each do |result|
113
+ next unless result['group']
114
+
113
115
  group = {}
114
116
  result['group'].each do |field, value|
115
117
  if fields_to_replace.include?(field)
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceCustomizer
2
- VERSION = "1.26.0"
2
+ VERSION = "1.26.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_datasource_customizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2026-03-20 00:00:00.000000000 Z
12
+ date: 2026-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport