@yuneta/gobj-ui 7.9.0 → 7.9.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.
@@ -15703,8 +15703,7 @@ function ac_mt_command_answer$2(gobj, event, kw, src) {
15703
15703
  if (result >= 0) {
15704
15704
  let gobj_topic_form = (0, _yuneta_gobj_js.gobj_find_child)(gobj, { __gobj_name__: `${(0, _yuneta_gobj_js.gobj_name)(gobj)}?${topic_name}` });
15705
15705
  let answer = nodes_answer(data);
15706
- let md = (0, _yuneta_gobj_js.kw_get_dict)(gobj, kw_command, "__md_command__", {}, 0);
15707
- let req_id = (0, _yuneta_gobj_js.kw_get_str)(gobj, md, "req_id", "", 0);
15706
+ let req_id = (0, _yuneta_gobj_js.kw_get_str)(gobj, kw_command, "req_id", "", 0);
15708
15707
  if (req_id) (0, _yuneta_gobj_js.gobj_send_event)(gobj_topic_form, "EV_PAGE_LOADED", {
15709
15708
  req_id,
15710
15709
  rows: answer.rows,
@@ -15698,8 +15698,7 @@ function ac_mt_command_answer$2(gobj, event, kw, src) {
15698
15698
  if (result >= 0) {
15699
15699
  let gobj_topic_form = gobj_find_child(gobj, { __gobj_name__: `${gobj_name(gobj)}?${topic_name}` });
15700
15700
  let answer = nodes_answer(data);
15701
- let md = kw_get_dict(gobj, kw_command, "__md_command__", {}, 0);
15702
- let req_id = kw_get_str(gobj, md, "req_id", "", 0);
15701
+ let req_id = kw_get_str(gobj, kw_command, "req_id", "", 0);
15703
15702
  if (req_id) gobj_send_event(gobj_topic_form, "EV_PAGE_LOADED", {
15704
15703
  req_id,
15705
15704
  rows: answer.rows,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.9.0",
3
+ "version": "7.9.1",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -1803,12 +1803,14 @@ function ac_mt_command_answer(gobj, event, kw, src)
1803
1803
  * backend that cannot page: the whole list arrives as one
1804
1804
  * page, which is the truth. */
1805
1805
  let answer = nodes_answer(data);
1806
- /* The correlation id travels in `__md_command__` of the kw
1807
- * that was SENT — the same place `topic_name` rides — so it
1808
- * is read back from the command stack and never sent to the
1809
- * backend as a parameter it does not know. */
1810
- let md = kw_get_dict(gobj, kw_command, "__md_command__", {}, 0);
1811
- let req_id = kw_get_str(gobj, md, "req_id", "", 0);
1806
+ /* The correlation id rides in `__md_command__`, which is the
1807
+ * same place `topic_name` rides — and `kw_command` IS that
1808
+ * object: C_IEVENT_CLI EXTRACTS `__md_command__` from the kw
1809
+ * and pushes it as the command stack's `kw`. So it is read
1810
+ * flat, one level up from where the sent kw put it, and it
1811
+ * never travels to the backend as a parameter it does not
1812
+ * know. */
1813
+ let req_id = kw_get_str(gobj, kw_command, "req_id", "", 0);
1812
1814
  if(req_id) {
1813
1815
  gobj_send_event(
1814
1816
  gobj_topic_form,