Skip to content

Commit

Permalink
Update operator for plot information logic
Browse files Browse the repository at this point in the history
Co-authored-by: NateLanza <58234814+NateLanza@users.noreply.github.com>
  • Loading branch information
JakeWags and NateLanza authored Aug 9, 2024
1 parent 584fd3c commit 329814a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/upset/src/components/custom/PlotInformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const PlotInformation = ({ onSave, divider, tabIndex }: Props) => {
*/
const generatePlotInformationText: () => string = () => {
// return default string if there are no values filled in
if (Object.values(plotInformation).filter((a) => a && a.length > 0).length === 0) {
if (Object.values(plotInformation).filter((a) => a?.length > 0).length === 0) {
return `This UpSet plot shows ${placeholderText.description}. The sets are ${placeholderText.sets}. The items are ${placeholderText.items}`;
}

Expand Down

0 comments on commit 329814a

Please sign in to comment.