updates frontend reducer to accept new sio_callback event data

This commit is contained in:
Mose Müller
2023-12-05 10:49:33 +01:00
parent 52d571e551
commit aab2b4ee77
2 changed files with 8 additions and 13 deletions

View File

@ -123,7 +123,7 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => {
// Whether to show the name infront of the component (false if used with a slider)
const showName = props.showName !== undefined ? props.showName : true;
// If emitUpdate is passed, use this instead of the emit_update from the socket
// If emitUpdate is passed, use this instead of the setAttribute from the socket
// Also used when used with a slider
const emitUpdate =
props.customEmitUpdate !== undefined ? props.customEmitUpdate : setAttribute;