@onehat/ui 0.3.141 → 0.3.142

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.141",
3
+ "version": "0.3.142",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -421,7 +421,7 @@ export default function withSecondaryEditor(WrappedComponent, isTree = false) {
421
421
  // Most of the time, if secondarySelection changed, put the Editor in "view" mode
422
422
  mode = EDITOR_MODE__VIEW;
423
423
  }
424
- setEditorMode(mode);
424
+ secondarySetEditorMode(mode);
425
425
 
426
426
  setSecondaryIsIgnoreNextSelectionChange(false);
427
427
  setLastSelection(secondarySelection);
@@ -442,9 +442,9 @@ export default function withSecondaryEditor(WrappedComponent, isTree = false) {
442
442
  // we see a flash of the previous state, since useEffect hasn't yet run.
443
443
  // (basically redo what's in the useEffect, above)
444
444
  if (secondaryIsIgnoreNextSelectionChange) {
445
- editorMode = calculateEditorMode();
445
+ secondaryEditorMode = calculateEditorMode();
446
446
  } else {
447
- editorMode = EDITOR_MODE__VIEW;
447
+ secondaryEditorMode = EDITOR_MODE__VIEW;
448
448
  }
449
449
  }
450
450