@nokecy/qc-ui 1.0.49 → 1.0.50
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.
|
@@ -29,7 +29,7 @@ var isAdditionComponent = function isAdditionComponent(schema) {
|
|
|
29
29
|
};
|
|
30
30
|
var isActionComponent = function isActionComponent(schema) {
|
|
31
31
|
var _schema$xComponent4;
|
|
32
|
-
return ((_schema$xComponent4 = schema['x-component']) === null || _schema$xComponent4 === void 0 ? void 0 : _schema$xComponent4.indexOf('Action')) > -1;
|
|
32
|
+
return schema && ((_schema$xComponent4 = schema['x-component']) === null || _schema$xComponent4 === void 0 ? void 0 : _schema$xComponent4.indexOf('Action')) > -1;
|
|
33
33
|
};
|
|
34
34
|
var useArrayTableSources = exports.useArrayTableSources = function useArrayTableSources() {
|
|
35
35
|
var arrayField = (0, _react2.useField)();
|
|
@@ -103,7 +103,7 @@ var useArrayTableActions = exports.useArrayTableActions = function useArrayTable
|
|
|
103
103
|
return [];
|
|
104
104
|
};
|
|
105
105
|
if (!schema) throw new Error('can not found schema object');
|
|
106
|
-
return schema.properties ? parseSources(schema.properties['actions']) : [];
|
|
106
|
+
return schema.properties ? parseSources(schema.properties['actions'] || {}) : [];
|
|
107
107
|
};
|
|
108
108
|
var AgField = function AgField(_ref) {
|
|
109
109
|
var value = _ref.value,
|
|
@@ -22,7 +22,7 @@ var isAdditionComponent = function isAdditionComponent(schema) {
|
|
|
22
22
|
};
|
|
23
23
|
var isActionComponent = function isActionComponent(schema) {
|
|
24
24
|
var _schema$xComponent4;
|
|
25
|
-
return ((_schema$xComponent4 = schema['x-component']) === null || _schema$xComponent4 === void 0 ? void 0 : _schema$xComponent4.indexOf('Action')) > -1;
|
|
25
|
+
return schema && ((_schema$xComponent4 = schema['x-component']) === null || _schema$xComponent4 === void 0 ? void 0 : _schema$xComponent4.indexOf('Action')) > -1;
|
|
26
26
|
};
|
|
27
27
|
var useArrayTableSources = function useArrayTableSources() {
|
|
28
28
|
var arrayField = useField();
|
|
@@ -96,7 +96,7 @@ var useArrayTableActions = function useArrayTableActions() {
|
|
|
96
96
|
return [];
|
|
97
97
|
};
|
|
98
98
|
if (!schema) throw new Error('can not found schema object');
|
|
99
|
-
return schema.properties ? parseSources(schema.properties['actions']) : [];
|
|
99
|
+
return schema.properties ? parseSources(schema.properties['actions'] || {}) : [];
|
|
100
100
|
};
|
|
101
101
|
var AgField = function AgField(_ref) {
|
|
102
102
|
var value = _ref.value,
|