Skip to content

Commit 8f5eef5

Browse files
Copilothotlong
andcommitted
fix: add setInternalSelectedWidgetId to useCallback deps
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 21ccdfb commit 8f5eef5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugin-designer/src/DashboardEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export function DashboardEditor({
425425
const setSelectedWidgetId = useCallback((id: string | null) => {
426426
if (onWidgetSelect) onWidgetSelect(id);
427427
if (!isControlled) setInternalSelectedWidgetId(id);
428-
}, [isControlled, onWidgetSelect]);
428+
}, [isControlled, onWidgetSelect, setInternalSelectedWidgetId]);
429429

430430
const {
431431
current: currentSchema,

0 commit comments

Comments
 (0)