chore: Improve typings around model methods (#6324)
This commit is contained in:
@@ -87,7 +87,7 @@ export default class CommentsStore extends Store<Comment> {
|
||||
documentId,
|
||||
...options,
|
||||
});
|
||||
invariant(res && res.data, "Comment list not available");
|
||||
invariant(res?.data, "Comment list not available");
|
||||
|
||||
runInAction("CommentsStore#fetchDocumentComments", () => {
|
||||
res.data.forEach(this.add);
|
||||
|
||||
Reference in New Issue
Block a user