Commit 05e29c21 authored by Thibaut Frain's avatar Thibaut Frain

Corrected bug (error if there was no previous history to load)

parent f4e3f9d2
...@@ -61,6 +61,12 @@ ...@@ -61,6 +61,12 @@
g.props = { g.props = {
talks: talks talks: talks
}; };
}).fail(function(e) {
if (e.status === 404) {
g.props = {
talks: {}
};
}
}); });
}).declareMethod("render", function(options) { }).declareMethod("render", function(options) {
var gadget = this, messages; var gadget = this, messages;
......
...@@ -86,6 +86,13 @@ ...@@ -86,6 +86,13 @@
g.props = { g.props = {
talks: talks talks: talks
}; };
})
.fail(function (e) {
if (e.status === 404) {
g.props = {
talks: {}
};
}
}); });
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment