Skip to content

Commit

Permalink
fix(core/reports): omit table header when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
robzan8 authored and peppedeka committed Jul 7, 2021
1 parent c0898d0 commit 6a7fc1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export function widgetToWidgetInstance(
colspan: cell.colspan,
});
});
tdwi.data = [[...header], ...dataset];
tdwi.data = header.length === 0 ? [...dataset] : [[...header], ...dataset];
} else if (widget.widgetType === AjfWidgetType.Image) {
const iw = widget as AjfImageWidget;
const iwi = wi as AjfImageWidgetInstance;
Expand Down

0 comments on commit 6a7fc1a

Please sign in to comment.