diff --git a/packages/accounts-base/accounts_server.js b/packages/accounts-base/accounts_server.js index 5d4e05a9b6..e8a884c87b 100644 --- a/packages/accounts-base/accounts_server.js +++ b/packages/accounts-base/accounts_server.js @@ -904,8 +904,10 @@ export class AccountsServer extends AccountsCommon { // - forLoggedInUser {Array} Array of fields published to the logged-in user // - forOtherUsers {Array} Array of fields published to users that aren't logged in addAutopublishFields(opts) { - this._autopublishFields.loggedInUser.push(...opts.forLoggedInUser); - this._autopublishFields.otherUsers.push(...opts.forOtherUsers); + this._autopublishFields.loggedInUser.push.apply( + this._autopublishFields.loggedInUser, opts.forLoggedInUser); + this._autopublishFields.otherUsers.push.apply( + this._autopublishFields.otherUsers, opts.forOtherUsers); }; // Replaces the fields to be automatically