Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const NavigatorSeries = props => {
const series = useSeries(props.seriesId);
useEffect(() => {
if (!series) return;
updateNavigatorSeries(series, { showInNavigator: true });
return () => {
attempt(updateNavigatorSeries, series, { showInNavigator: false });
};
}, [series]);
return null;
};