Fix some filteriffic filters bluescreening it (#89474)

## About The Pull Request
At some point value = null started pulling a cannot tostring error for
NumberInput so we just default it to 0 instead if its null
Might be a better fix by just changing it in tguicore but I assume this
was intended

P.s. this should be tsxed

## Changelog
🆑
fix: fixed some filters (e.g displacement) in filteriffic bluescreening
the UI
/🆑

---------

Co-authored-by: TiviPlus <572233640+TiviPlus@users.noreply.com>
This commit is contained in:
TiviPlus
2025-02-16 12:42:26 -08:00
committed by GitHub
co-authored by TiviPlus
parent 5ccbbf4444
commit 07e9be5348
@@ -23,7 +23,7 @@ const FilterIntegerEntry = (props) => {
const { act } = useBackend();
return (
<NumberInput
value={value}
value={value || 0}
minValue={-500}
maxValue={500}
step={1}
@@ -49,7 +49,7 @@ const FilterFloatEntry = (props) => {
return (
<>
<NumberInput
value={value}
value={value || 0}
minValue={-500}
maxValue={500}
stepPixelSize={4}