super-page-runtime 2.0.95 → 2.0.98

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.
@@ -135,7 +135,7 @@ function getWorkflowFormData(pageContext, id) {
135
135
  listCodesMap: pageContext.listCodesMap
136
136
  };
137
137
  console.log("getWorkflowFormData---listCodesMap=", pageContext.listCodesMap);
138
- if (!pageContext.listCodesMap && pageContext.tableUuids) {
138
+ if ((!pageContext.listCodesMap || Object.keys(pageContext.listCodesMap).length === 0) && pageContext.tableUuids) {
139
139
  const listCodesMap = {};
140
140
  pageContext.tableUuids.forEach((tableUuid) => {
141
141
  const listCode = getListCode(pageCode, pageVersion, tableUuid);
@@ -101,16 +101,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
101
101
  if (!configure.props || !configure.props.otherSettings) {
102
102
  return;
103
103
  }
104
- if (configure.props.otherSettings.sourceQueryTableData && configure.props.otherSettings.timeToInitializeSubTable && configure.props.otherSettings.sourceQueryTableData.timeToInitializeSubTable.length > 0) {
104
+ if (configure.props.otherSettings.sourceQueryTableData && configure.props.otherSettings.timeToInitializeSubTable && configure.props.otherSettings.timeToInitializeSubTable.length > 0) {
105
105
  let flag = false;
106
- if (configure.props.otherSettings.sourceQueryTableData.timeToInitializeSubTable.indexOf("create") !== -1) {
106
+ if (configure.props.otherSettings.timeToInitializeSubTable.indexOf("create") !== -1) {
107
107
  if (dataModel.id || dataModel.ID) {
108
108
  flag = false;
109
109
  } else {
110
110
  flag = true;
111
111
  }
112
112
  }
113
- if (configure.props.otherSettings.sourceQueryTableData.timeToInitializeSubTable.indexOf("noData") !== -1) {
113
+ if (configure.props.otherSettings.timeToInitializeSubTable.indexOf("noData") !== -1) {
114
114
  const tableData = dataModel[prop];
115
115
  if (!tableData || tableData.length <= 0) {
116
116
  flag = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.0.95",
3
+ "version": "2.0.98",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",