Working for permalink

This commit is contained in:
Belen Curcio
2017-09-08 13:15:17 -03:00
parent fd71acf7e0
commit 6494669262
@@ -16,6 +16,22 @@ export default {
return prev;
}
// Permalink view will retrieve only one comment.
if (prev.asset.comment) {
const updated = update(prev, {
asset: {
comment: {
status: {
$set: status
}
}
}
});
return updated;
}
// Stream View
const updated = update(prev, {
asset: {
comments: {