refactor: flow typing (#1012)
* fix: padding * fix: Minor button alignment issues * feat: Add icon to invite people button * WIP
This commit is contained in:
@@ -49,7 +49,7 @@ export default class DocumentsStore extends BaseStore<Document> {
|
||||
return orderBy(this.all, 'updatedAt', 'desc');
|
||||
}
|
||||
|
||||
createdByUser(userId: string): * {
|
||||
createdByUser(userId: string): Document[] {
|
||||
return orderBy(
|
||||
filter(this.all, d => d.createdBy.id === userId),
|
||||
'updatedAt',
|
||||
@@ -387,7 +387,12 @@ export default class DocumentsStore extends BaseStore<Document> {
|
||||
}
|
||||
|
||||
@action
|
||||
async update(params: *) {
|
||||
async update(params: {
|
||||
id: string,
|
||||
title: string,
|
||||
text: string,
|
||||
lastRevision: number,
|
||||
}) {
|
||||
const document = await super.update(params);
|
||||
|
||||
// Because the collection object contains the url and title
|
||||
|
||||
Reference in New Issue
Block a user