Skip to content

Commit

Permalink
[Build] 0.25.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed Aug 14, 2018
1 parent db355f5 commit 5a6a569
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/vuex-orm.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,8 @@ var BelongsToMany = /** @class */ (function (_super) {
*/
BelongsToMany.prototype.createPivots = function (parent, data, key) {
var _this = this;
if (this.pivot.primaryKey instanceof Array === false)
return data;
Utils.forOwn(data[parent.entity], function (record) {
var related = record[key];
if (related === undefined || related.length === 0) {
Expand Down
2 changes: 2 additions & 0 deletions dist/vuex-orm.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,8 @@ var BelongsToMany = /** @class */ (function (_super) {
*/
BelongsToMany.prototype.createPivots = function (parent, data, key) {
var _this = this;
if (this.pivot.primaryKey instanceof Array === false)
return data;
Utils.forOwn(data[parent.entity], function (record) {
var related = record[key];
if (related === undefined || related.length === 0) {
Expand Down
2 changes: 2 additions & 0 deletions dist/vuex-orm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,8 @@
*/
BelongsToMany.prototype.createPivots = function (parent, data, key) {
var _this = this;
if (this.pivot.primaryKey instanceof Array === false)
return data;
Utils.forOwn(data[parent.entity], function (record) {
var related = record[key];
if (related === undefined || related.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion dist/vuex-orm.min.js

Large diffs are not rendered by default.

0 comments on commit 5a6a569

Please sign in to comment.