mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 15:40:51 +01:00
Wired fix
This commit is contained in:
parent
bdc912720c
commit
5cf49daaf8
@ -81,19 +81,6 @@ export const WiredBaseView: FC<PropsWithChildren<WiredBaseViewProps>> = props =>
|
||||
return [];
|
||||
});
|
||||
}
|
||||
|
||||
return () =>
|
||||
{
|
||||
setNeedsSave(false);
|
||||
setIntParams([]);
|
||||
setStringParam(null);
|
||||
setFurniIds(prevValue =>
|
||||
{
|
||||
if(prevValue && prevValue.length) WiredSelectionVisualizer.clearSelectionShaderFromFurni(prevValue);
|
||||
|
||||
return [];
|
||||
});
|
||||
}
|
||||
}, [ trigger, hasSpecialInput, requiresFurni, setIntParams, setStringParam, setFurniIds ]);
|
||||
|
||||
return (
|
||||
|
@ -118,8 +118,13 @@ const useWiredState = () =>
|
||||
{
|
||||
setIntParams([]);
|
||||
setStringParam('');
|
||||
setFurniIds([]);
|
||||
setActionDelay(0);
|
||||
setFurniIds(prevValue =>
|
||||
{
|
||||
if(prevValue && prevValue.length) WiredSelectionVisualizer.clearSelectionShaderFromFurni(prevValue);
|
||||
|
||||
return [];
|
||||
});
|
||||
}
|
||||
}, [ trigger ]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user