mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
clean up
This commit is contained in:
1 parent
aa0c8e15b9
commit
dc51b5a039
2 files changed
+2
-1
No files matched your search
@@ -35,7 +35,7 @@ export const WaveformPlayer = ({ audio }: { audio: string }) => {
|
||||
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
console.log("OK?");
|
||||
//destructor on unmount
|
||||
waveSurferRef.current?.destroy();
|
||||
};
|
||||
}, []);
|
||||
|
||||
@@ -31,6 +31,7 @@ export const PageSelectV2VModel = ({
|
||||
|
||||
const refCallback = useCallback((node:HTMLInputElement)=>{
|
||||
if(node) node.focus();
|
||||
//auto focus on the mounting on the input component
|
||||
},[]);
|
||||
|
||||
return(
|
||||
|
||||
Reference in new issue
Block a user