@jd-data-limited/easy-fm 0.0.5 → 0.0.6

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.
Files changed (3) hide show
  1. package/index.js +2 -0
  2. package/index.ts +1 -0
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -354,6 +354,8 @@ class field {
354
354
  this.edited = true;
355
355
  }
356
356
  get dataType() {
357
+ if (!this.record.layout.metadata)
358
+ return "unknown";
357
359
  if (this.record instanceof portalItem) {
358
360
  return this.record.layout.metadata.portalMetaData.find(name => name === this.id).result;
359
361
  }
package/index.ts CHANGED
@@ -415,6 +415,7 @@ class field {
415
415
  }
416
416
 
417
417
  get dataType() {
418
+ if (!this.record.layout.metadata) return "unknown"
418
419
  if (this.record instanceof portalItem) {
419
420
  return this.record.layout.metadata.portalMetaData.find(name => name === this.id).result
420
421
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jd-data-limited/easy-fm",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "dependencies": {
5
5
  "@types/btoa": "^1.2.3",
6
6
  "@types/events": "^3.0.0",