Skip to content

Commit

Permalink
Fix for older schema change
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Feb 24, 2019
1 parent 3f90163 commit 755d92f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/shared/store/shared/migrations/010-updateBlockchains.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { uniq } from 'lodash';

const update = (blockchains) => {
// If prior state had no array, return one
if (!blockchains) return [];
// Otherwise update it
const newBlockchains = [];
blockchains.forEach((blockchain) => {
const chain = Object.assign({}, blockchain);
Expand Down

0 comments on commit 755d92f

Please sign in to comment.