Skip to content

Commit

Permalink
Accomodate dev fix (#1316)
Browse files Browse the repository at this point in the history
* Too lazy to set `Script.hash` to a value for listed scripts that I haven't created on dev. ;) Pro doesn't have this issue since it was manually set for every script source when this `hash` feature was first introduced. S3 had source fakeS3 doesn't for non-owned.

Post #1312

Auto-merge
  • Loading branch information
Martii authored Jan 10, 2018
1 parent 54eb590 commit 3862727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/modelParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ var parseScript = function (aScript) {
parseDateProperty(script, '_since'); // Virtual

// Hash
script.hashShort = script.hash.substr(0, 7);
script.hashShort = script.hash ? script.hash.substr(0, 7) : 'undefined';

if (script._since && script.updated && script._since.toString() !== script.updated.toString()) {
script.isUpdated = true;
Expand Down

0 comments on commit 3862727

Please sign in to comment.