WindmillWWindmill
Powered by
EntVlE
Windmill•16mo ago
EntVl

Output is wrapped in a promise

Hello, I have a flow with scripts in it. The problem is that one of the scripts behaves differently from the others. It returns an object, but when I try to access this object in an
if
if
statement (or just pass it to another inline script), I can't access its attributes because the entire object is wrapped in a promise. Before returning this object, it's definitely a regular JavaScript object, but after returning, it gets wrapped. What could be wrong?
WindmillJoin
3,388Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

We're live here https://discord.com/channels/930051556043276338/1278977038430240813

henri-c · 2d ago

rubenf

Infrastructure as code

rubenf · 3w ago

rubenf

As we're preparing for a new Windmill sandbox SDK, we took the opportunity **to open-source NSJAIL sandboxing** and make it available in CE and easier to set. In 1.634.0, just set nsjail to benefit from the tightest security and isolation per job. It's constraining so no need to use it unless you need but now you won't be restricted in security for CE if you need to.

rubenf · 4w ago

Similar Threads

Input doesn't get preprocessor output in the flow
konclaveKkonclave / help
6mo ago
error: Top-level await promise never resolved
EggingtonEEggington / help
16mo ago
Using a function's output typescript types in the next step of the flow
RicoRRico / help
3y ago
is it possible to transform output from multi select so it will update fields in grid?
mitzjukimMmitzjukim / help
13mo ago