ugh i have encountered the infinite loop. <https:/...
# suitescript
Thoughts on avoiding a dialog x2 when tabbing?
b
not enough code
make your script remember when it has a dialog open already
dialog.alert returns a Promise, dont create another alert while the promise hasn't resolved, or errored
r
oh yes, i have seen this pattern before
How can I access PromiseState? I stored the Promise object, I can see in the console that [[PromiseState]] is pending/fulfilled, but I've tried prom==='fulfilled', prom.PromiseState (undefined), JSON.stringify(prom) ({}), etc.
b