From 329814a34f30a3173c961287313f1b002f9ae561 Mon Sep 17 00:00:00 2001 From: Jake Wagoner Date: Fri, 9 Aug 2024 11:23:16 -0600 Subject: [PATCH] Update operator for plot information logic Co-authored-by: NateLanza <58234814+NateLanza@users.noreply.github.com> --- packages/upset/src/components/custom/PlotInformation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/upset/src/components/custom/PlotInformation.tsx b/packages/upset/src/components/custom/PlotInformation.tsx index 4b7a99f3..0f94aaea 100644 --- a/packages/upset/src/components/custom/PlotInformation.tsx +++ b/packages/upset/src/components/custom/PlotInformation.tsx @@ -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}`; }