mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Parse scene t value as number not int (#5744)
This commit is contained in:
parent
81f642b8b8
commit
9636ff7c16
1 changed files with 6 additions and 1 deletions
|
|
@ -720,7 +720,12 @@ const SceneLoader: React.FC<RouteComponentProps<ISceneParams>> = ({
|
|||
|
||||
const _setTimestamp = useRef<(value: number) => void>();
|
||||
const initialTimestamp = useMemo(() => {
|
||||
return Number.parseInt(queryParams.get("t") ?? "0", 10);
|
||||
const t = queryParams.get("t");
|
||||
if (!t) return 0;
|
||||
|
||||
const n = Number(t);
|
||||
if (Number.isNaN(n)) return 0;
|
||||
return n;
|
||||
}, [queryParams]);
|
||||
|
||||
const [queueTotal, setQueueTotal] = useState(0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue