From b124e7e83aa4a546a20c1318f188eec165976adb Mon Sep 17 00:00:00 2001 From: jesscall Date: Tue, 23 Nov 2021 12:39:01 -0500 Subject: [PATCH] amend props in annotation form --- .../src/series/components/AnnotationForm.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/AnnotationForm.tsx b/modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/AnnotationForm.tsx index 59b22cefece..fca93fcaf29 100644 --- a/modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/AnnotationForm.tsx +++ b/modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/AnnotationForm.tsx @@ -5,7 +5,7 @@ import {setTimeSelection} from '../store/state/timeSelection'; import {setRightPanel} from '../store/state/rightPanel'; import {setEpochs} from '../store/state/dataset'; import * as R from 'ramda'; -import {toggleEpoch, updateActiveEpoch, updateFilteredEpochs} from '../store/logic/filterEpochs'; +import {toggleEpoch, updateActiveEpoch} from '../store/logic/filterEpochs'; import {RootState} from '../store'; type CProps = { @@ -14,6 +14,7 @@ type CProps = { filteredEpochs: number[], setTimeSelection: (_: [number, number]) => void, setRightPanel: (_: RightPanel) => void, + setEpochs: (_: EpochType[]) => void, toggleEpoch: (_: number) => void, updateActiveEpoch: (_: number) => void, interval: [number, number], @@ -25,6 +26,7 @@ const AnnotationForm = ({ filteredEpochs, setTimeSelection, setRightPanel, + setEpochs, toggleEpoch, updateActiveEpoch, interval, @@ -290,10 +292,6 @@ export default connect( dispatch, setEpochs ), - updateFilteredEpochs: R.compose( - dispatch, - updateFilteredEpochs - ), toggleEpoch: R.compose( dispatch, toggleEpoch