Skip to content

Commit

Permalink
do note temp store empty forign keys fix #491
Browse files Browse the repository at this point in the history
  • Loading branch information
t8g committed Nov 21, 2017
1 parent 478221d commit 4f5f052
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/app/isari-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ export class IsariDataService {

private storeForeignKeys(feature, value) {
if (!feature) return;
if (!value) return;
const api = mongoSchema2Api[feature];
value = isArray(value) ? value : [value];
this.tempForeignKeys[api] = uniq([...(this.tempForeignKeys[api] || []), ...value]);
Expand Down

0 comments on commit 4f5f052

Please sign in to comment.