mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user