@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.
- package/index.js +2 -0
- package/index.ts +1 -0
- 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