@cloudcare/guance-front-tools 1.0.7 → 1.0.9

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.
@@ -334,10 +334,10 @@ const covert = (grafanaData) => {
334
334
  var _a;
335
335
  if (_panel.type === 'row') {
336
336
  const _rowPanel = _panel;
337
- guanceGroups.push({
338
- name: _rowPanel.title,
339
- });
340
337
  if (_rowPanel.title) {
338
+ guanceGroups.push({
339
+ name: _rowPanel.title,
340
+ });
341
341
  // 分组展开收起数据
342
342
  guanceExpand[_rowPanel.title] = !_rowPanel.collapsed;
343
343
  }
@@ -335,10 +335,11 @@ const covert = (grafanaData: GrafanaDashboardType): GuanceDashboardType => {
335
335
  grafanaCharts.forEach((_panel) => {
336
336
  if (_panel.type === 'row') {
337
337
  const _rowPanel = _panel as RowPanel
338
- guanceGroups.push({
339
- name: _rowPanel.title,
340
- })
338
+
341
339
  if (_rowPanel.title) {
340
+ guanceGroups.push({
341
+ name: _rowPanel.title,
342
+ })
342
343
  // 分组展开收起数据
343
344
  guanceExpand[_rowPanel.title] = !_rowPanel.collapsed
344
345
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcare/guance-front-tools",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },