We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6b36f2 commit 78a56fdCopy full SHA for 78a56fd
src/chart/table/TableChart.tsx
@@ -40,12 +40,17 @@ const fallbackRenderer = (value) => {
40
41
function renderAsButtonWrapper(renderer) {
42
return function renderAsButton(value) {
43
+ const outputValue = renderer(value, true);
44
+ // If there's nothing to be rendered, there's no button needed.
45
+ if (outputValue == '') {
46
+ return <></>;
47
+ }
48
return (
49
<Button
50
style={{ width: '100%', marginLeft: '5px', marginRight: '5px' }}
51
variant='contained'
52
color='primary'
- >{`${renderer(value, true)}`}</Button>
53
+ >{`${outputValue}`}</Button>
54
);
55
};
56
}
0 commit comments