@tachybase/client 1.2.16-alpha.1 → 1.2.16-alpha.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.
@@ -55,9 +55,9 @@ const ImportUpload = (props)=>{
55
55
  const uploadProps = {
56
56
  multiple: false,
57
57
  action: '/collections:importMeta',
58
- data: {
59
- category: (null == category ? void 0 : category[0]) || void 0
60
- },
58
+ data: (null == category ? void 0 : category[0]) && {
59
+ category: category[0]
60
+ } || {},
61
61
  async onChange (info) {
62
62
  if (info.fileList.length > 1) info.fileList.splice(0, info.fileList.length - 1);
63
63
  const { status } = info.file;
@@ -99,9 +99,9 @@ const ImportUpload = (props)=>{
99
99
  const uploadProps = {
100
100
  multiple: false,
101
101
  action: '/collections:importMeta',
102
- data: {
103
- category: (null == category ? void 0 : category[0]) || void 0
104
- },
102
+ data: (null == category ? void 0 : category[0]) && {
103
+ category: category[0]
104
+ } || {},
105
105
  async onChange (info) {
106
106
  if (info.fileList.length > 1) info.fileList.splice(0, info.fileList.length - 1);
107
107
  const { status } = info.file;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachybase/client",
3
- "version": "1.2.16-alpha.1",
3
+ "version": "1.2.16-alpha.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",
@@ -65,12 +65,13 @@
65
65
  "react-zoom-pan-pinch": "^3.6.1",
66
66
  "sanitize-html": "2.14.0",
67
67
  "use-deep-compare-effect": "^1.8.1",
68
- "@tachybase/evaluators": "1.2.16-alpha.1",
69
- "@tachybase/components": "1.2.16-alpha.1",
70
- "@tachybase/requirejs": "1.2.16-alpha.1",
71
- "@tachybase/schema": "1.2.16-alpha.1",
72
- "@tachybase/sdk": "1.2.16-alpha.1",
73
- "@tachybase/utils": "1.2.16-alpha.1"
68
+ "xlsx": "0.18.5",
69
+ "@tachybase/components": "1.2.16-alpha.3",
70
+ "@tachybase/schema": "1.2.16-alpha.3",
71
+ "@tachybase/requirejs": "1.2.16-alpha.3",
72
+ "@tachybase/evaluators": "1.2.16-alpha.3",
73
+ "@tachybase/sdk": "1.2.16-alpha.3",
74
+ "@tachybase/utils": "1.2.16-alpha.3"
74
75
  },
75
76
  "devDependencies": {
76
77
  "@testing-library/react": "^16.2.0",