You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think my question is unclear, so this is an extract of NightOrderModal.vue:
The first forEach is already on the code. I just changed it to don't push the Travelers. My goal with this is to push in the Night Order all the played Travelers, not only the Travelers for this script (after all, most of unofficial scripts have no traveler).
So, the second forEach is added to push all played Travelers in the Night Order. But this doesn't work, even if I copied the same structure. And I know why: here, player is of type Player, while in the previous forEach, players is of type... I don't know which one.
List of Player? Table of Player? Which is this datatype, and so which change do I have to make in the push(Object.assign)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I think my question is unclear, so this is an extract of NightOrderModal.vue:
The first
forEach
is already on the code. I just changed it to don't push the Travelers. My goal with this is to push in the Night Order all the played Travelers, not only the Travelers for this script (after all, most of unofficial scripts have no traveler).So, the second
forEach
is added to push all played Travelers in the Night Order. But this doesn't work, even if I copied the same structure. And I know why: here,player
is of type Player, while in the previous forEach,players
is of type... I don't know which one.List of Player? Table of Player? Which is this datatype, and so which change do I have to make in the
push(Object.assign)
?Beta Was this translation helpful? Give feedback.
All reactions