in that code - the callback should only run when the
is available. Were you seeing otherwise?
full-dress-1002609/25/2018, 5:20 PM
if I remove the
TS2532: Object is possibly 'undefined'.
is set to
to be missing from a valid ECS Service, so it can indeed be
. Nice that
catches this. You should be able to add back that check in a variant like what I shared as well if that looks simpler to you.
full-dress-1002609/25/2018, 5:44 PM