@gisce/react-ooui 1.1.12 → 1.1.13-rc.1

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.
@@ -27836,7 +27836,10 @@ const TreeActionView = (e) => {
27836
27836
  setCurrentView: f,
27837
27837
  availableViews: p,
27838
27838
  searchTreeNameSearch: h
27839
- } = e;
27839
+ } = e, {
27840
+ currentView: m,
27841
+ setPreviousView: v
27842
+ } = useContext(ActionViewContext);
27840
27843
  return t ? /* @__PURE__ */ jsxs(Fragment, {
27841
27844
  children: [/* @__PURE__ */ jsx(TitleHeader, {
27842
27845
  children: /* @__PURE__ */ jsx(TreeActionBar, {
@@ -27853,15 +27856,15 @@ const TreeActionView = (e) => {
27853
27856
  formView: a,
27854
27857
  treeView: s,
27855
27858
  domain: c,
27856
- onRowClicked: (m) => {
27859
+ onRowClicked: (x) => {
27857
27860
  const {
27858
- id: v
27859
- } = m;
27860
- d(v);
27861
- const x = u.findIndex((g) => g.id === v);
27862
- l(x);
27863
- const I = p.find((g) => g.type === "form");
27864
- f(I);
27861
+ id: I
27862
+ } = x;
27863
+ d(I);
27864
+ const g = u.findIndex((y) => y.id === I);
27865
+ v == null || v(m), l(g);
27866
+ const C = p.find((y) => y.type === "form");
27867
+ f(C);
27865
27868
  }
27866
27869
  })]
27867
27870
  }) : null;