summaryrefslogtreecommitdiff
path: root/elm/StaffEdit/Main.elm
diff options
context:
space:
mode:
Diffstat (limited to 'elm/StaffEdit/Main.elm')
-rw-r--r--elm/StaffEdit/Main.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/StaffEdit/Main.elm b/elm/StaffEdit/Main.elm
index 4ea50fd5..2aace15a 100644
--- a/elm/StaffEdit/Main.elm
+++ b/elm/StaffEdit/Main.elm
@@ -151,7 +151,7 @@ update msg model =
let body = GSE.encode (encode model)
in ({ model | state = Api.Loading }, Api.post "/s/edit.json" body Submitted)
- Submitted (GApi.Changed id rev) -> (model, load <| "/s" ++ String.fromInt id ++ "." ++ String.fromInt rev)
+ Submitted (GApi.Redirect s) -> (model, load s)
Submitted r -> ({ model | state = Api.Error r }, Cmd.none)