mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-12 12:53:04 +00:00
fix netlify gates
This commit is contained in:
1 parent
90b0e9b88d
commit
6445d1204d
1 file changed
+5
-4
+5
-4
@@ -43,11 +43,12 @@ export const TrimScrubber = ({
|
||||
useEffect(()=>{
|
||||
if (trimValues !== null){
|
||||
const newWidth = calcScrubberWidth();
|
||||
if (newWidth !== scrubberWidth){
|
||||
setScrubberWidth(newWidth);
|
||||
}
|
||||
setScrubberWidth((currWidth)=>{
|
||||
if (newWidth !== currWidth) return newWidth;
|
||||
else return currWidth;
|
||||
});
|
||||
}
|
||||
},[trimValues]);
|
||||
},[trimValues, calcScrubberWidth]);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user