From e842c12d5d848ac5422e867817de5e310a98a630 Mon Sep 17 00:00:00 2001 From: Henry Liang Date: Fri, 17 Jan 2025 11:52:31 -0800 Subject: [PATCH] add flags to react memo comparison --- app/pages/dashboard/TideDashboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/pages/dashboard/TideDashboard.js b/app/pages/dashboard/TideDashboard.js index 14bc8b12a2..6917be20d3 100644 --- a/app/pages/dashboard/TideDashboard.js +++ b/app/pages/dashboard/TideDashboard.js @@ -735,7 +735,9 @@ const TideDashboardSection = React.memo(props => { }, ((prevProps, nextProps) => ( prevProps.section.sortDirection === nextProps.section.sortDirection && prevProps.config === nextProps.config && - prevProps.patients === nextProps.patients + prevProps.patients === nextProps.patients && + prevProps.showTideDashboardLastReviewed === nextProps.showTideDashboardLastReviewed && + prevProps.showTideDashboardPatientDrawer === nextProps.showTideDashboardPatientDrawer ))); export const TideDashboard = (props) => {