Explorar o código

on air: fixed crash with checkboxes and switches

Rodja Trappe %!s(int64=2) %!d(string=hai) anos
pai
achega
54e15467e4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nicegui/air.py

+ 1 - 1
nicegui/air.py

@@ -78,7 +78,7 @@ class Air:
             if client_id not in globals.clients:
                 return
             client = globals.clients[client_id]
-            if 'socket_id' in data['msg']['args']:
+            if isinstance(data['msg']['args'], list) and 'socket_id' in data['msg']['args']:
                 data['msg']['args']['socket_id'] = client_id  # HACK: translate socket_id of ui.scene's init event
             handle_event(client, data['msg'])