mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-22 01:00:02 +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(() => {
|
useEffect(() => {
|
||||||
|
setEnumValue(() => {
|
||||||
|
return props.value;
|
||||||
|
});
|
||||||
addNotification(`${fullAccessPath} changed to ${value}.`);
|
addNotification(`${fullAccessPath} changed to ${value}.`);
|
||||||
}, [props.value]);
|
}, [props.value]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user