mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 12:49:06 +00:00
use topic object instead timestamp
This commit is contained in:
@@ -138,7 +138,7 @@ export default function Recorder(props) {
|
||||
});
|
||||
region.on("click", (e) => {
|
||||
e.stopPropagation();
|
||||
setActiveTopic(region.start);
|
||||
setActiveTopic(topic);
|
||||
wavesurfer.setTime(region.start);
|
||||
});
|
||||
}
|
||||
@@ -164,7 +164,7 @@ export default function Recorder(props) {
|
||||
|
||||
useEffect(() => {
|
||||
if (activeTopic) {
|
||||
wavesurfer.setTime(activeTopic);
|
||||
wavesurfer.setTime(activeTopic.timestamp);
|
||||
}
|
||||
}, [activeTopic]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user