khiemnd5K
BuildShip2y ago
5 replies
khiemnd5

Switch case can't get value returned from case

I don't know how to fix this bug
```Cannot read properties of undefined (reading 'aea54620-4a8f-4134-afe8-82618f157703')
CleanShot_2024-03-11_at_23.15.572x.png
Solution
For this - since the type returned is object, you can access the value directly without the hash-string using dot notation, eg: (x)swai3.ai3.
Was this page helpful?