From edf47b7c21367246cc777019d56cd74929a08cd9 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Fri, 21 Aug 2026 11:08:59 +0100 Subject: [PATCH] Update NotesPanel to Include 'type' in Dependency Array - Modified the dependency array in the useEffect hook of the NotesPanel component to include 'type', ensuring that the effect re-runs when the type prop changes. This enhances the component's responsiveness to prop updates. --- src/components/Dashboard/common/NotesPanel.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Dashboard/common/NotesPanel.jsx b/src/components/Dashboard/common/NotesPanel.jsx index 75d3284a..1038adcb 100644 --- a/src/components/Dashboard/common/NotesPanel.jsx +++ b/src/components/Dashboard/common/NotesPanel.jsx @@ -109,7 +109,7 @@ const NotesPanel = ({ _id, type }) => { subscribeToObjectTypeUpdatesRef.current = null } } - }, [_id, subscribeToObjectTypeUpdates, connected, handleReloadData]) + }, [_id, type, subscribeToObjectTypeUpdates, connected, handleReloadData]) useEffect(() => { if (