Closed yuekui closed 1 week ago
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
Hi @bryantbiggs , it would be great if you could review this when you have a chance. Thanks!
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
Just re-opened the PR, waiting for review
this looks like a dynamic workspace use issue, not a module issue. if you want to do this sort of dynamic "if this, then that", then you should use map comprehension instead of a conditional on the map object
Description
To conditionally create an endpoint, we plan to use a merge method combined with a ternary expression. However, this approach may lead to an 'Invalid function argument' error because the lookup function might return a null value, which differs from the expected default type
[]
.Versions
Reproduction Code [Required]
Expected behavior
Endpoints should be created successfully
Actual behavior
Invalid function argument errors were raised when trying to lookup settings of each value
Terminal Output Screenshot(s)
Additional context
I've created a PR and added the conditional endpoints in example