@processmaker/screen-builder 2.60.2 → 2.60.3

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": "@processmaker/screen-builder",
3
- "version": "2.60.2",
3
+ "version": "2.60.3",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -99,6 +99,10 @@ export default {
99
99
  });
100
100
  },
101
101
  getScreen(id, query = "") {
102
+ if (!id) {
103
+ return null;
104
+ }
105
+
102
106
  const cachedPromise = this.cachedScreenPromises.find(
103
107
  (item) => item.id === id && item.query === query
104
108
  );
@@ -89,6 +89,9 @@ class FormNestedScreenValidations extends Validations {
89
89
  }
90
90
 
91
91
  async loadScreen(id) {
92
+ if (!id) {
93
+ return null;
94
+ }
92
95
  if (!globalObject['nestedScreens']) {
93
96
  globalObject['nestedScreens'] = {};
94
97
  }
@@ -99,7 +102,6 @@ class FormNestedScreenValidations extends Validations {
99
102
  globalObject.nestedScreens['id_' + id] = response.data.config;
100
103
  return response.data.config;
101
104
  }
102
-
103
105
  }
104
106
 
105
107
  /**