#Quick question

17 messages · Page 1 of 1 (latest)

robust dove
#

Why does this work

const setRecipeDuration = (id, duration) => event.forEachRecipe({ id: id }, recipe => recipe.set("duration", duration))

but not this?

const setRecipeDuration = (id, duration) => event.forEachRecipe({ id }, recipe => recipe.set("duration", duration))

isn't it basically the same thing?

raven horizonBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

split field
#

because Rhino doesnt have the capability to parse that correctly

#

its not a 1:1 copy of javascript, its a copy with most of JS' features

#

most of this should be fixed when Rhino is replaced by Ichor

gusty acorn
#

I'm just guessing here

gusty acorn
robust dove
robust dove
split field
gusty acorn
robust dove
#

Haha

split field
tropic hawkBOT
#

Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue! This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.

Do you have any other questions regarding your issue? Feel free to ask!
Note: You should generally create a new post for unrelated issues.

robust dove
#

Oh oops I forgot