@xuda.io/runtime-bundle 1.0.245 → 1.0.247

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.
@@ -27220,9 +27220,13 @@ func.utils.set_SYS_GLOBAL_OBJ_WIDGET_INFO = async function (SESSION_ID, docP) {
27220
27220
  };
27221
27221
 
27222
27222
  func.utils.get_last_datasource_no = function (SESSION_ID) {
27223
- const filtered = Object.values(SESSION_OBJ[SESSION_ID].DS_GLB).filter((e) => e.tree_obj.menuType !== 'api');
27224
27223
 
27225
- return filtered?.at?.(-1)?.dssession;
27224
+ if (typeof IS_PROCESS_SERVER !== "undefined") {
27225
+ return Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).at?.(-1)
27226
+ } else {
27227
+ const filtered = Object.values(SESSION_OBJ[SESSION_ID].DS_GLB).filter((e) => e.tree_obj.menuType !== 'api');
27228
+ return filtered?.at?.(-1)?.dsSession;
27229
+ }
27226
27230
  };
27227
27231
  func.UI.utils = {};
27228
27232