Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3350)

Unified Diff: appengine/swarming/elements/res/imp/botpage/bot-page-data.html

Issue 2404883002: Add links to MP and resolve minor fixes (Closed)
Patch Set: Address Polymer comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/elements/res/imp/botpage/bot-page-data.html
diff --git a/appengine/swarming/elements/res/imp/botpage/bot-page-data.html b/appengine/swarming/elements/res/imp/botpage/bot-page-data.html
index 1dbf1ebe52f0d63759bffd85cb4efcd4eb7b1e3b..a46b471a2cadc7214078eb08f8ddbaac23a7baea 100644
--- a/appengine/swarming/elements/res/imp/botpage/bot-page-data.html
+++ b/appengine/swarming/elements/res/imp/botpage/bot-page-data.html
@@ -142,7 +142,7 @@
}
// Do any preprocessing here
bot.state = bot.state || "{}";
- bot.state = JSON.parse(bot.state);
+ bot.state = JSON.parse(bot.state) || {};
// get the disks in an easier to deal with format, sorted by size.
var disks = bot.state.disks || {};

Powered by Google App Engine
This is Rietveld 408576698