Skip to content

Conversation

@artem-burlakov-ext-orion

before:

render(locals = {}, template = this.templateName) {
    this.responseType = 'rendering';
    // FIXME: check if property already exists
    Object.assign(this.locals, locals);
    this.templateName = template;
  }

after:

render(locals = {}, template = this.templateName) {
    this.responseType = 'rendering';
    const self = this;
    Object.entries(locals).forEach(([key, value]) => self.addLocal(key, value));
    this.templateName = template;
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant