@xh/hoist 73.0.0-SNAPSHOT.1743512234296 → 73.0.0-SNAPSHOT.1743781894378

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ## v73.0.0-SNAPSHOT - unreleased
4
4
 
5
5
  * Support for reporting Client Version in Admin WebSockets tab.
6
+ * NULL check when accessing records in Store to prevent a thrown error
6
7
 
7
8
  ## v72.2.0 - 2025-03-13
8
9
 
package/data/Store.ts CHANGED
@@ -18,6 +18,7 @@ import {
18
18
  isEmpty,
19
19
  isFunction,
20
20
  isNil,
21
+ isNull,
21
22
  isString,
22
23
  values,
23
24
  remove as lodashRemove,
@@ -692,6 +693,8 @@ export class Store extends HoistBase {
692
693
  * for backwards compat with app code predating support for multiple {@link summaryRecords}.
693
694
  */
694
695
  get summaryRecord(): StoreRecord {
696
+ if (isNull(this.summaryRecords)) return null;
697
+
695
698
  throwIf(
696
699
  this.summaryRecords.length > 1,
697
700
  'Store has multiple summary records - must access via Store.summaryRecords.'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "73.0.0-SNAPSHOT.1743512234296",
3
+ "version": "73.0.0-SNAPSHOT.1743781894378",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",