mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-13 19:33:46 +08:00
added back parseInt
This commit is contained in:
1 parent
cc3c42e215
commit
26f7c5ddd3
1 file changed
+2
-2
@@ -517,7 +517,7 @@ export default function CameraPanel(props) {
|
||||
onBlur={(e) => {
|
||||
if (e.target.validity.valid) {
|
||||
if (e.target.value !== '') {
|
||||
setSeconds(e.target.value);
|
||||
setSeconds(parseInt(e.target.value, 10));
|
||||
} else {
|
||||
setUISeconds(seconds);
|
||||
}
|
||||
@@ -540,7 +540,7 @@ export default function CameraPanel(props) {
|
||||
onBlur={(e) => {
|
||||
if (e.target.validity.valid) {
|
||||
if (e.target.value !== '') {
|
||||
setFps(e.target.value);
|
||||
setFps(parseInt(e.target.value, 10));
|
||||
} else {
|
||||
setUIfps(fps);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user