mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-22 09:10:01 +02:00
updates enumValue when backend value changes
This commit is contained in:
parent
f97a138e65
commit
853472be94
@ -53,6 +53,9 @@ export const EnumComponent = React.memo((props: EnumComponentProps) => {
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
setEnumValue(() => {
|
||||
return props.value;
|
||||
});
|
||||
addNotification(`${fullAccessPath} changed to ${value}.`);
|
||||
}, [props.value]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user