@xh/hoist 76.0.0-SNAPSHOT.1755111169547 → 76.0.0-SNAPSHOT.1755187001333

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.
@@ -279,7 +279,7 @@ function createExpandCollapseItem(gridModel: GridModel): RecordAction[] {
279
279
 
280
280
  function levelExpandAction(gridModel: GridModel): RecordAction {
281
281
  return new RecordAction({
282
- text: 'Expand to ...',
282
+ text: 'Expand to...',
283
283
  displayFn: () => {
284
284
  const {maxDepth, expandLevel, resolvedLevelLabels} = gridModel;
285
285
 
@@ -99,8 +99,12 @@ export abstract class BaseRow {
99
99
  let {children, view} = this,
100
100
  {query} = view;
101
101
 
102
- if (!children || (children[0].isLeaf && !query.includeLeaves && !query.provideLeaves))
102
+ if (
103
+ isEmpty(children) ||
104
+ (children[0].isLeaf && !query.includeLeaves && !query.provideLeaves)
105
+ ) {
103
106
  return null;
107
+ }
104
108
 
105
109
  // Skip all children in a locked node
106
110
  if (query.lockFn?.(this as any)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "76.0.0-SNAPSHOT.1755111169547",
3
+ "version": "76.0.0-SNAPSHOT.1755187001333",
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",
@@ -108,7 +108,7 @@ export class IdentityService extends HoistService {
108
108
  /** Exit any active impersonation, reloading the app to resume accessing it as yourself. */
109
109
  async endImpersonateAsync() {
110
110
  try {
111
- await XH.prefService.pushPendingAsync();
111
+ await XH.prefService?.pushPendingAsync();
112
112
  await XH.fetchJson({url: 'xh/endImpersonate'});
113
113
  XH.reloadApp();
114
114
  } catch (e) {