mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 20:47:43 +01:00
fix default inputs on complex modal (#19033)
* fix default inputs on complex modal * be gone brackets from debugging * it's cheap enough * way shorter
This commit is contained in:
@@ -125,11 +125,11 @@ export const ComplexModal = (props: {
|
||||
|
||||
const { modal } = data;
|
||||
|
||||
const [curValue, setCurValue] = useState(modal?.value);
|
||||
const [curValue, setCurValue] = useState(String(modal?.value ?? ''));
|
||||
|
||||
useEffect(() => {
|
||||
if (modal?.type === 'input') {
|
||||
setCurValue(modal.value);
|
||||
setCurValue(String(modal.value ?? ''));
|
||||
}
|
||||
}, [modal?.value, modal?.type]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user