Bug or intented? Move to partial vs include a partial

If I convert something piece of code to a partial via the UI (move to partial) I get the following statement.

<%- await include('path/to/file') %>

If I add the partial via “Add new component” I get the following statement.

<%- await include('path/to/file', Object.assign({}, locals, )) %>

Also, is there a reason to include a comma right after locals?

1 Like

Good catch, the second syntax is how it should be, so input variables work as well.

Will fix it

2 Likes

Fixed now in Wappler 3.4.0

This topic was automatically closed after 27 hours. New replies are no longer allowed.