diff options
author | 2014-04-21 14:57:50 +0000 | |
---|---|---|
committer | 2014-04-21 14:57:50 +0000 | |
commit | 1bc6ecc470e1281c5eae9042f0d2bcd79f913e01 (patch) | |
tree | 7eaf1c394ff259b483e44f065bdebcc525ca877e /experimental/webtry/webtry.go | |
parent | b3fbe42c712ce5340b5aaae34378dd30e1b073d7 (diff) |
Picking from the wrong end of the workspace history list.
BUG=skia:
R=mtklein@google.com
Author: jcgregorio@google.com
Review URL: https://codereview.chromium.org/244133002
git-svn-id: http://skia.googlecode.com/svn/trunk@14275 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/webtry/webtry.go')
-rw-r--r-- | experimental/webtry/webtry.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/experimental/webtry/webtry.go b/experimental/webtry/webtry.go index 4c0e5b0a28..73b1ae598a 100644 --- a/experimental/webtry/webtry.go +++ b/experimental/webtry/webtry.go @@ -437,7 +437,7 @@ func workspaceHandler(w http.ResponseWriter, r *http.Request) { if len(tries) == 0 { code = DEFAULT_SAMPLE } else { - code = getCode(tries[len(tries)-1].Hash) + code = getCode(tries[0].Hash) } if err := workspaceTemplate.Execute(w, Workspace{Tries: tries, Code: code, Name: name}); err != nil { log.Printf("ERROR: Failed to expand template: %q\n", err) |