Skip to content

Commit

Permalink
fixes share button theme and tooltip (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
scespinoza authored Nov 14, 2024
2 parents 1875074 + 55ee100 commit fcfc5aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/vizbuilder/components/ChartCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ export function ChartCard(props: {
}}
size="sm"
variant={isShared ? "filled" : "light"}
color={isShared ? "green" : "blue"}
>
{isShared
? translate("vizbuilder.share_copied")
Expand Down
3 changes: 3 additions & 0 deletions src/vizbuilder/hooks/useD3plusConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ function _buildTooltipTbody(
if (column.type === "measure") return null;
if (column.type === "level" && column.hasID && column.isID) return null;
const {caption, name} = getColumnEntity(column);

if(Array.isArray(d[name])) return null;

return [caption, d[name]] as [string, string];
}).concat([[meaCaption, measureFormatter(d[meaName] as number, locale)]]);
};
Expand Down

0 comments on commit fcfc5aa

Please sign in to comment.