Skip to content

Commit

Permalink
fix: storage layout storing fix (#473)
Browse files Browse the repository at this point in the history
storage layout storing fix
  • Loading branch information
crystalbit committed Jul 5, 2024
1 parent cc53910 commit 26e1c70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions storage-checker/store-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ for (const file of files) {
}
const data = fs.readFileSync(filePath, "utf8");
const json = JSON.parse(data);
const layout = json.storageLayout.storage;
storageLayout[file] = layout;
const layout = json.storageLayout?.storage;
if (layout) {
storageLayout[file] = layout;
}
}

fs.writeFileSync(
Expand Down

0 comments on commit 26e1c70

Please sign in to comment.