iffy-pi / apple-shortcuts

A repository for handling the updates and versioning of my apple shortcuts
https://iffy-pi.github.io/apple-shortcuts/
2 stars 0 forks source link

Nutrition Framework - Make Preset fails when called as standalone shortcut #18

Closed iffy-pi closed 10 months ago

iffy-pi commented 10 months ago

Description: When Make Preset is called as a standalone shortcut (i.e. not passed in foods as shortcut input) the created preset has no values.

Found: When attempting to make a preset of cooked rice.

iffy-pi commented 10 months ago

Issue: The introduction of the askForServings variable broke things. It was introduced to allow users to edit the servings of foods passed in, but when Make Preset generates the foods from Foods List, askForServings is false and the servings variable is set to an empty value, 0.

iffy-pi commented 10 months ago

Fixing the bug now