Hello,
Thanks for your flow, I'm using it but sometimes it didn't work. It's the line
const cachedItems = flow.get('cachedItems') || new Map();
flow.get() returns an object so the functions Map.set() and Map.forEach() aren't working and the function block stops with an error.
Just change it to e.g.
const cachedItems = new Map(Object.entries(flow.get('cachedItems'))) || new Map();
and it should work. I'll test it further and report back if I still get errors:)
I really appreciate your work
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello,
Thanks for your flow, I'm using it but sometimes it didn't work.
It's the line
flow.get() returns an object so the functions Map.set() and Map.forEach() aren't working and the function block stops with an error.
Just change it to e.g.
and it should work. I'll test it further and report back if I still get errors:)
I really appreciate your work