@cloudbase/weda-ui-mp 3.22.0 → 3.22.1

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.
@@ -167,16 +167,19 @@ Component({
167
167
  ],
168
168
  };
169
169
  try {
170
- if (dataSource?.type === 'database') {
170
+ if (dataSource?.type === 'database' && dataSource?.name) {
171
171
  return await callWedaApi({
172
172
  action: 'DescribeChartCardData',
173
173
  data: params,
174
174
  });
175
175
  }
176
- return await callDataSource({
177
- dataSourceName: dataSource?.name,
178
- methodName: dataSource?.methodName,
179
- });
176
+ if (dataSource?.name && dataSource?.methodName) {
177
+ return await callDataSource({
178
+ dataSourceName: dataSource?.name,
179
+ methodName: dataSource?.methodName,
180
+ });
181
+ }
182
+ return [];
180
183
  } catch {
181
184
  return [];
182
185
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "miniprogram": "./",
4
4
  "packageManager": "yarn@3.0.2",
5
5
  "dependencies": {},
6
- "version": "3.22.0",
6
+ "version": "3.22.1",
7
7
  "main": "./",
8
8
  "publishConfig": {
9
9
  "access": "public"