Topic markers now appear on the waveform of saved transcripts

This commit is contained in:
Koper
2023-09-26 15:49:31 +01:00
parent 6a43297309
commit d7653d03cb

View File

@@ -138,7 +138,7 @@ export default function Recorder(props: RecorderProps) {
useEffect(() => { useEffect(() => {
topicsRef.current = props.topics; topicsRef.current = props.topics;
if (!isRecording) renderMarkers(); if (!isRecording) renderMarkers();
}, [props.topics]); }, [props.topics, waveRegions]);
const renderMarkers = () => { const renderMarkers = () => {
if (!waveRegions) return; if (!waveRegions) return;