I think I’ve solved the issue for you with this suggestion. The problem was that your code declared the svg
variable in the callback of the then
method. This meant that when you returned svg.node()
, you were referring to the svg
variable that the Observable standard library provides. My suggestion updates your code to use await
to eliminate the callback.
1 Like