Fixes: Documents marked as starred incorrectly

This commit is contained in:
Tom Moor
2017-09-02 16:58:24 -07:00
parent d5a9b92965
commit b9b2769563

View File

@ -31,7 +31,7 @@ async function present(ctx: Object, document: Document, options: ?Options) {
lastViewedAt: undefined, lastViewedAt: undefined,
team: document.teamId, team: document.teamId,
collaborators: [], collaborators: [],
starred: !!document.starred, starred: !!document.starred.length,
collaboratorCount: undefined, collaboratorCount: undefined,
collection: undefined, collection: undefined,
views: undefined, views: undefined,