mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-02-13 13:58:41 +01:00
chore: changing parent_path to parentPath
This commit is contained in:
@@ -11,13 +11,13 @@ export const socket = io(URL, { path: '/ws/socket.io', transports: ['websocket']
|
||||
|
||||
export const emit_update = (
|
||||
name: string,
|
||||
parent_path: string,
|
||||
parentPath: string,
|
||||
value: unknown,
|
||||
callback?: (ack: unknown) => void
|
||||
) => {
|
||||
if (callback) {
|
||||
socket.emit('frontend_update', { name, parent_path, value }, callback);
|
||||
socket.emit('frontend_update', { name, parent_path: parentPath, value }, callback);
|
||||
} else {
|
||||
socket.emit('frontend_update', { name, parent_path, value });
|
||||
socket.emit('frontend_update', { name, parent_path: parentPath, value });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user