Closed supermamon closed 2 years ago
When using valueFor and assigning the result to a magic variable which is the same name as the key, it doesn't compile correctly.
valueFor
Take this code and compile
import Shortcuts 1092.6 #Color: red, #Icon: shortcuts dictionary({"key1": "value1", "key2":"value2"}) >> prefs valueFor(key: "key1", dictionary: prefs ) >> key1
A shortcut with 2 actions, Dictionary and Get Value from Dictionary getting the value for key1
key1
This has been fixed in version 1.2.1. Thank you for reporting it!
Describe the bug
When using
valueFor
and assigning the result to a magic variable which is the same name as the key, it doesn't compile correctly.To Reproduce
Take this code and compile
Expected behavior
A shortcut with 2 actions, Dictionary and Get Value from Dictionary getting the value for
key1
Screenshots
Information
Additional context