@faasjs/ant-design 0.0.3-beta.21 → 0.0.3-beta.22
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1317,7 +1317,7 @@ function FaasDataTable({
|
|
|
1317
1317
|
setCurrentColumns((prev) => {
|
|
1318
1318
|
const newColumns = [...prev];
|
|
1319
1319
|
for (const column of newColumns) {
|
|
1320
|
-
if (data["options"][column.id]) {
|
|
1320
|
+
if (data["options"] && data.options[column.id]) {
|
|
1321
1321
|
column.options = data["options"][column.id];
|
|
1322
1322
|
column.filters = data["options"][column.id].map((v) => ({
|
|
1323
1323
|
text: v.label,
|
package/dist/index.mjs
CHANGED
|
@@ -1323,7 +1323,7 @@ function FaasDataTable({
|
|
|
1323
1323
|
setCurrentColumns((prev) => {
|
|
1324
1324
|
const newColumns = [...prev];
|
|
1325
1325
|
for (const column of newColumns) {
|
|
1326
|
-
if (data["options"][column.id]) {
|
|
1326
|
+
if (data["options"] && data.options[column.id]) {
|
|
1327
1327
|
column.options = data["options"][column.id];
|
|
1328
1328
|
column.filters = data["options"][column.id].map((v) => ({
|
|
1329
1329
|
text: v.label,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "0.0.3-beta.
|
|
3
|
+
"version": "0.0.3-beta.22",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lodash-es": "*",
|
|
29
29
|
"react": "*",
|
|
30
30
|
"react-dom": "*",
|
|
31
|
-
"@faasjs/react": "^0.0.3-beta.
|
|
31
|
+
"@faasjs/react": "^0.0.3-beta.22",
|
|
32
32
|
"react-router-dom": "*",
|
|
33
33
|
"dayjs": "*"
|
|
34
34
|
},
|