Fix deps on panel options (#93647)

This commit is contained in:
Victor Marin 2024-09-24 13:23:00 +03:00 committed by GitHub
parent 2ceb3c699d
commit 764ec264c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,7 @@ export const PanelOptions = React.memo<Props>(({ vizManager, searchQuery, listMo
instanceState: _pluginInstanceState,
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [panel, options, fieldConfig, _pluginInstanceState]);
}, [data, panel, options, fieldConfig, _pluginInstanceState]);
const libraryPanelOptions = useMemo(() => {
if (panel instanceof VizPanel && isLibraryPanel(panel)) {