Commit 5e80a75a authored by marioromera's avatar marioromera
Browse files

return undefined object on get revisions

parent 1e738714
......@@ -127,10 +127,11 @@ async function getRevisions() {
logger.warn('Connection error', e);
});
const etherpadJson = response && response.json();
if (!etherpadJson && etherpadJson.data) {
const etherpadJson = response.json();
if (!etherpadJson.data) {
logger.warn('No revisions found');
return [];
return
}
return etherpadJson.data;
}
......
Supports Markdown
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